The following document contains the results of PMD's CPD 5.0.5.
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmsVer12.java | 1282 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmsVer13.java | 1320 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmsVer14.java | 1302 |
return OFOxmVer12.READER;
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromValue(F value, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOp((ArpOpcode)((Object)value)));
case ARP_SHA:
return (OFOxm<F>)((Object)arpSha((MacAddress)((Object)value)));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpa((IPv4Address)((Object)value)));
case ARP_THA:
return (OFOxm<F>)((Object)arpTha((MacAddress)((Object)value)));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpa((IPv4Address)((Object)value)));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupId((ClassId)((Object)value)));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowed((OFBooleanValue)((Object)value)));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128((OFBitMask128)((Object)value)));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512((OFBitMask512)((Object)value)));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupId((ClassId)((Object)value)));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHit((OFBooleanValue)((Object)value)));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassId((ClassId)((Object)value)));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassId((ClassId)((Object)value)));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassId((ClassId)((Object)value)));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagId((LagId)((Object)value)));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlags((U16)((Object)value)));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0((UDF)((Object)value)));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1((UDF)((Object)value)));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2((UDF)((Object)value)));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3((UDF)((Object)value)));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4((UDF)((Object)value)));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5((UDF)((Object)value)));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6((UDF)((Object)value)));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7((UDF)((Object)value)));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupId((ClassId)((Object)value)));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrf((VRF)((Object)value)));
case ETH_DST:
return (OFOxm<F>)((Object)ethDst((MacAddress)((Object)value)));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrc((MacAddress)((Object)value)));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethType((EthType)((Object)value)));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4Code((ICMPv4Code)((Object)value)));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4Type((ICMPv4Type)((Object)value)));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6Code((U8)((Object)value)));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6Type((U8)((Object)value)));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPort((OFPort)((Object)value)));
case IN_PORT:
return (OFOxm<F>)((Object)inPort((OFPort)((Object)value)));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscp((IpDscp)((Object)value)));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcn((IpEcn)((Object)value)));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProto((IpProtocol)((Object)value)));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4Dst((IPv4Address)((Object)value)));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4Src((IPv4Address)((Object)value)));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6Dst((IPv6Address)((Object)value)));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6Flabel((IPv6FlowLabel)((Object)value)));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSll((MacAddress)((Object)value)));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTarget((IPv6Address)((Object)value)));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTll((MacAddress)((Object)value)));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6Src((IPv6Address)((Object)value)));
case METADATA:
return (OFOxm<F>)((Object)metadata((OFMetadata)((Object)value)));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabel((U32)((Object)value)));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTc((U8)((Object)value)));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDst((TransportPort)((Object)value)));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrc((TransportPort)((Object)value)));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDst((TransportPort)((Object)value)));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrc((TransportPort)((Object)value)));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4Dst((IPv4Address)((Object)value)));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4Src((IPv4Address)((Object)value)));
case UDP_DST:
return (OFOxm<F>)((Object)udpDst((TransportPort)((Object)value)));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrc((TransportPort)((Object)value)));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcp((VlanPcp)((Object)value)));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVid((OFVlanVidMatch)((Object)value)));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDst((MacAddress)((Object)value)));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrc((MacAddress)((Object)value)));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkId((U32)((Object)value)));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6Exthdr((U16)((Object)value)));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBos((OFBooleanValue)((Object)value)));
case OCH_SIGID:
return (OFOxm<F>)((Object)ochSigid((CircuitSignalID)((Object)value)));
case OCH_SIGID_BASIC:
return (OFOxm<F>)((Object)ochSigidBasic((CircuitSignalID)((Object)value)));
case OCH_SIGTYPE:
return (OFOxm<F>)((Object)ochSigtype((U8)((Object)value)));
case OCH_SIGTYPE_BASIC:
return (OFOxm<F>)((Object)ochSigtypeBasic((U8)((Object)value)));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelId((U64)((Object)value)));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUca((OFBooleanValue)((Object)value)));
default:
throw new IllegalArgumentException("No OXM known for match field " + field);
}
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromValueAndMask(F value, F mask, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)value), (ArpOpcode)((Object)mask)));
case ARP_SHA:
return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case ARP_THA:
return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)value), (OFBitMask128)((Object)mask)));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512Masked((OFBitMask512)((Object)value), (OFBitMask512)((Object)mask)));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHitMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)value), (LagId)((Object)mask)));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)value), (U16)((Object)mask)));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)value), (VRF)((Object)mask)));
case ETH_DST:
return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)value), (EthType)((Object)mask)));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)value), (ICMPv4Code)((Object)mask)));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)value), (ICMPv4Type)((Object)mask)));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)value), (U8)((Object)mask)));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)value), (U8)((Object)mask)));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)value), (OFPort)((Object)mask)));
case IN_PORT:
return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)value), (OFPort)((Object)mask)));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)value), (IpDscp)((Object)mask)));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)value), (IpEcn)((Object)mask)));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)value), (IpProtocol)((Object)mask)));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)value), (IPv6FlowLabel)((Object)mask)));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case METADATA:
return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)value), (OFMetadata)((Object)mask)));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)value), (U32)((Object)mask)));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)value), (U8)((Object)mask)));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case UDP_DST:
return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)value), (VlanPcp)((Object)mask)));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)value), (OFVlanVidMatch)((Object)mask)));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkIdMasked((U32)((Object)value), (U32)((Object)mask)));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6ExthdrMasked((U16)((Object)value), (U16)((Object)mask)));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBosMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)value), (U64)((Object)mask)));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUcaMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
default:
throw new IllegalArgumentException("No OXM known for match field " + field);
}
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromMasked(Masked<F> masked, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)(masked.getValue())), (ArpOpcode)((Object)(masked.getMask()))));
case ARP_SHA:
return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case ARP_THA:
return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)(masked.getValue())), (OFBitMask128)((Object)(masked.getMask()))));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512Masked((OFBitMask512)((Object)(masked.getValue())), (OFBitMask512)((Object)(masked.getMask()))));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHitMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)(masked.getValue())), (LagId)((Object)(masked.getMask()))));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask()))));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)(masked.getValue())), (VRF)((Object)(masked.getMask()))));
case ETH_DST:
return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)(masked.getValue())), (EthType)((Object)(masked.getMask()))));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)(masked.getValue())), (ICMPv4Code)((Object)(masked.getMask()))));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)(masked.getValue())), (ICMPv4Type)((Object)(masked.getMask()))));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask()))));
case IN_PORT:
return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask()))));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)(masked.getValue())), (IpDscp)((Object)(masked.getMask()))));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)(masked.getValue())), (IpEcn)((Object)(masked.getMask()))));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)(masked.getValue())), (IpProtocol)((Object)(masked.getMask()))));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)(masked.getValue())), (IPv6FlowLabel)((Object)(masked.getMask()))));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case METADATA:
return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)(masked.getValue())), (OFMetadata)((Object)(masked.getMask()))));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask()))));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case UDP_DST:
return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)(masked.getValue())), (VlanPcp)((Object)(masked.getMask()))));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)(masked.getValue())), (OFVlanVidMatch)((Object)(masked.getMask()))));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkIdMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask()))));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6ExthdrMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask()))));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBosMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)(masked.getValue())), (U64)((Object)(masked.getMask()))));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUcaMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
default:
return null;
}
}
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFOxmsVer10.java | 987 |
| org/projectfloodlight/openflow/protocol/ver11/OFOxmsVer11.java | 987 |
throw new UnsupportedOperationException("Reader<OFOxm<?>> not supported in version 1.0");
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromValue(F value, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOp((ArpOpcode)((Object)value)));
case ARP_SHA:
return (OFOxm<F>)((Object)arpSha((MacAddress)((Object)value)));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpa((IPv4Address)((Object)value)));
case ARP_THA:
return (OFOxm<F>)((Object)arpTha((MacAddress)((Object)value)));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpa((IPv4Address)((Object)value)));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupId((ClassId)((Object)value)));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowed((OFBooleanValue)((Object)value)));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128((OFBitMask128)((Object)value)));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512((OFBitMask512)((Object)value)));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupId((ClassId)((Object)value)));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHit((OFBooleanValue)((Object)value)));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassId((ClassId)((Object)value)));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassId((ClassId)((Object)value)));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassId((ClassId)((Object)value)));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagId((LagId)((Object)value)));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlags((U16)((Object)value)));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0((UDF)((Object)value)));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1((UDF)((Object)value)));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2((UDF)((Object)value)));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3((UDF)((Object)value)));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4((UDF)((Object)value)));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5((UDF)((Object)value)));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6((UDF)((Object)value)));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7((UDF)((Object)value)));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupId((ClassId)((Object)value)));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrf((VRF)((Object)value)));
case ETH_DST:
return (OFOxm<F>)((Object)ethDst((MacAddress)((Object)value)));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrc((MacAddress)((Object)value)));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethType((EthType)((Object)value)));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4Code((ICMPv4Code)((Object)value)));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4Type((ICMPv4Type)((Object)value)));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6Code((U8)((Object)value)));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6Type((U8)((Object)value)));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPort((OFPort)((Object)value)));
case IN_PORT:
return (OFOxm<F>)((Object)inPort((OFPort)((Object)value)));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscp((IpDscp)((Object)value)));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcn((IpEcn)((Object)value)));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProto((IpProtocol)((Object)value)));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4Dst((IPv4Address)((Object)value)));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4Src((IPv4Address)((Object)value)));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6Dst((IPv6Address)((Object)value)));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6Flabel((IPv6FlowLabel)((Object)value)));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSll((MacAddress)((Object)value)));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTarget((IPv6Address)((Object)value)));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTll((MacAddress)((Object)value)));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6Src((IPv6Address)((Object)value)));
case METADATA:
return (OFOxm<F>)((Object)metadata((OFMetadata)((Object)value)));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabel((U32)((Object)value)));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTc((U8)((Object)value)));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDst((TransportPort)((Object)value)));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrc((TransportPort)((Object)value)));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDst((TransportPort)((Object)value)));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrc((TransportPort)((Object)value)));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4Dst((IPv4Address)((Object)value)));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4Src((IPv4Address)((Object)value)));
case UDP_DST:
return (OFOxm<F>)((Object)udpDst((TransportPort)((Object)value)));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrc((TransportPort)((Object)value)));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcp((VlanPcp)((Object)value)));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVid((OFVlanVidMatch)((Object)value)));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDst((MacAddress)((Object)value)));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrc((MacAddress)((Object)value)));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkId((U32)((Object)value)));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6Exthdr((U16)((Object)value)));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBos((OFBooleanValue)((Object)value)));
case OCH_SIGID:
return (OFOxm<F>)((Object)ochSigid((CircuitSignalID)((Object)value)));
case OCH_SIGID_BASIC:
return (OFOxm<F>)((Object)ochSigidBasic((CircuitSignalID)((Object)value)));
case OCH_SIGTYPE:
return (OFOxm<F>)((Object)ochSigtype((U8)((Object)value)));
case OCH_SIGTYPE_BASIC:
return (OFOxm<F>)((Object)ochSigtypeBasic((U8)((Object)value)));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelId((U64)((Object)value)));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUca((OFBooleanValue)((Object)value)));
default:
throw new IllegalArgumentException("No OXM known for match field " + field);
}
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromValueAndMask(F value, F mask, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)value), (ArpOpcode)((Object)mask)));
case ARP_SHA:
return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case ARP_THA:
return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)value), (OFBitMask128)((Object)mask)));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512Masked((OFBitMask512)((Object)value), (OFBitMask512)((Object)mask)));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHitMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)value), (LagId)((Object)mask)));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)value), (U16)((Object)mask)));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)value), (VRF)((Object)mask)));
case ETH_DST:
return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)value), (EthType)((Object)mask)));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)value), (ICMPv4Code)((Object)mask)));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)value), (ICMPv4Type)((Object)mask)));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)value), (U8)((Object)mask)));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)value), (U8)((Object)mask)));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)value), (OFPort)((Object)mask)));
case IN_PORT:
return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)value), (OFPort)((Object)mask)));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)value), (IpDscp)((Object)mask)));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)value), (IpEcn)((Object)mask)));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)value), (IpProtocol)((Object)mask)));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)value), (IPv6FlowLabel)((Object)mask)));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case METADATA:
return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)value), (OFMetadata)((Object)mask)));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)value), (U32)((Object)mask)));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)value), (U8)((Object)mask)));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case UDP_DST:
return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)value), (VlanPcp)((Object)mask)));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)value), (OFVlanVidMatch)((Object)mask)));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkIdMasked((U32)((Object)value), (U32)((Object)mask)));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6ExthdrMasked((U16)((Object)value), (U16)((Object)mask)));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBosMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)value), (U64)((Object)mask)));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUcaMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
default:
throw new IllegalArgumentException("No OXM known for match field " + field);
}
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromMasked(Masked<F> masked, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)(masked.getValue())), (ArpOpcode)((Object)(masked.getMask()))));
case ARP_SHA:
return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case ARP_THA:
return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)(masked.getValue())), (OFBitMask128)((Object)(masked.getMask()))));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512Masked((OFBitMask512)((Object)(masked.getValue())), (OFBitMask512)((Object)(masked.getMask()))));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHitMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)(masked.getValue())), (LagId)((Object)(masked.getMask()))));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask()))));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)(masked.getValue())), (VRF)((Object)(masked.getMask()))));
case ETH_DST:
return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)(masked.getValue())), (EthType)((Object)(masked.getMask()))));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)(masked.getValue())), (ICMPv4Code)((Object)(masked.getMask()))));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)(masked.getValue())), (ICMPv4Type)((Object)(masked.getMask()))));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask()))));
case IN_PORT:
return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask()))));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)(masked.getValue())), (IpDscp)((Object)(masked.getMask()))));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)(masked.getValue())), (IpEcn)((Object)(masked.getMask()))));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)(masked.getValue())), (IpProtocol)((Object)(masked.getMask()))));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)(masked.getValue())), (IPv6FlowLabel)((Object)(masked.getMask()))));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case METADATA:
return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)(masked.getValue())), (OFMetadata)((Object)(masked.getMask()))));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask()))));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case UDP_DST:
return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)(masked.getValue())), (VlanPcp)((Object)(masked.getMask()))));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)(masked.getValue())), (OFVlanVidMatch)((Object)(masked.getMask()))));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkIdMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask()))));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6ExthdrMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask()))));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBosMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)(masked.getValue())), (U64)((Object)(masked.getMask()))));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUcaMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
default:
return null;
}
}
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFOxmsVer10.java | 988 |
| org/projectfloodlight/openflow/protocol/ver11/OFOxmsVer11.java | 988 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmsVer12.java | 1283 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmsVer13.java | 1321 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmsVer14.java | 1303 |
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromValue(F value, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOp((ArpOpcode)((Object)value)));
case ARP_SHA:
return (OFOxm<F>)((Object)arpSha((MacAddress)((Object)value)));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpa((IPv4Address)((Object)value)));
case ARP_THA:
return (OFOxm<F>)((Object)arpTha((MacAddress)((Object)value)));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpa((IPv4Address)((Object)value)));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupId((ClassId)((Object)value)));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowed((OFBooleanValue)((Object)value)));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128((OFBitMask128)((Object)value)));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512((OFBitMask512)((Object)value)));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupId((ClassId)((Object)value)));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHit((OFBooleanValue)((Object)value)));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassId((ClassId)((Object)value)));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassId((ClassId)((Object)value)));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassId((ClassId)((Object)value)));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagId((LagId)((Object)value)));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlags((U16)((Object)value)));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0((UDF)((Object)value)));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1((UDF)((Object)value)));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2((UDF)((Object)value)));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3((UDF)((Object)value)));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4((UDF)((Object)value)));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5((UDF)((Object)value)));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6((UDF)((Object)value)));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7((UDF)((Object)value)));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupId((ClassId)((Object)value)));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrf((VRF)((Object)value)));
case ETH_DST:
return (OFOxm<F>)((Object)ethDst((MacAddress)((Object)value)));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrc((MacAddress)((Object)value)));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethType((EthType)((Object)value)));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4Code((ICMPv4Code)((Object)value)));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4Type((ICMPv4Type)((Object)value)));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6Code((U8)((Object)value)));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6Type((U8)((Object)value)));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPort((OFPort)((Object)value)));
case IN_PORT:
return (OFOxm<F>)((Object)inPort((OFPort)((Object)value)));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscp((IpDscp)((Object)value)));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcn((IpEcn)((Object)value)));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProto((IpProtocol)((Object)value)));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4Dst((IPv4Address)((Object)value)));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4Src((IPv4Address)((Object)value)));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6Dst((IPv6Address)((Object)value)));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6Flabel((IPv6FlowLabel)((Object)value)));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSll((MacAddress)((Object)value)));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTarget((IPv6Address)((Object)value)));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTll((MacAddress)((Object)value)));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6Src((IPv6Address)((Object)value)));
case METADATA:
return (OFOxm<F>)((Object)metadata((OFMetadata)((Object)value)));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabel((U32)((Object)value)));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTc((U8)((Object)value)));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDst((TransportPort)((Object)value)));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrc((TransportPort)((Object)value)));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDst((TransportPort)((Object)value)));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrc((TransportPort)((Object)value)));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4Dst((IPv4Address)((Object)value)));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4Src((IPv4Address)((Object)value)));
case UDP_DST:
return (OFOxm<F>)((Object)udpDst((TransportPort)((Object)value)));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrc((TransportPort)((Object)value)));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcp((VlanPcp)((Object)value)));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVid((OFVlanVidMatch)((Object)value)));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDst((MacAddress)((Object)value)));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrc((MacAddress)((Object)value)));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkId((U32)((Object)value)));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6Exthdr((U16)((Object)value)));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBos((OFBooleanValue)((Object)value)));
case OCH_SIGID:
return (OFOxm<F>)((Object)ochSigid((CircuitSignalID)((Object)value)));
case OCH_SIGID_BASIC:
return (OFOxm<F>)((Object)ochSigidBasic((CircuitSignalID)((Object)value)));
case OCH_SIGTYPE:
return (OFOxm<F>)((Object)ochSigtype((U8)((Object)value)));
case OCH_SIGTYPE_BASIC:
return (OFOxm<F>)((Object)ochSigtypeBasic((U8)((Object)value)));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelId((U64)((Object)value)));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUca((OFBooleanValue)((Object)value)));
default:
throw new IllegalArgumentException("No OXM known for match field " + field);
}
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromValueAndMask(F value, F mask, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)value), (ArpOpcode)((Object)mask)));
case ARP_SHA:
return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case ARP_THA:
return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)value), (OFBitMask128)((Object)mask)));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512Masked((OFBitMask512)((Object)value), (OFBitMask512)((Object)mask)));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHitMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)value), (LagId)((Object)mask)));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)value), (U16)((Object)mask)));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)value), (UDF)((Object)mask)));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask)));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)value), (VRF)((Object)mask)));
case ETH_DST:
return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)value), (EthType)((Object)mask)));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)value), (ICMPv4Code)((Object)mask)));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)value), (ICMPv4Type)((Object)mask)));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)value), (U8)((Object)mask)));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)value), (U8)((Object)mask)));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)value), (OFPort)((Object)mask)));
case IN_PORT:
return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)value), (OFPort)((Object)mask)));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)value), (IpDscp)((Object)mask)));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)value), (IpEcn)((Object)mask)));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)value), (IpProtocol)((Object)mask)));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)value), (IPv6FlowLabel)((Object)mask)));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask)));
case METADATA:
return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)value), (OFMetadata)((Object)mask)));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)value), (U32)((Object)mask)));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)value), (U8)((Object)mask)));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask)));
case UDP_DST:
return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask)));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)value), (VlanPcp)((Object)mask)));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)value), (OFVlanVidMatch)((Object)mask)));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask)));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkIdMasked((U32)((Object)value), (U32)((Object)mask)));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6ExthdrMasked((U16)((Object)value), (U16)((Object)mask)));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBosMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)value), (U64)((Object)mask)));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUcaMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask)));
default:
throw new IllegalArgumentException("No OXM known for match field " + field);
}
}
@SuppressWarnings("unchecked")
public <F extends OFValueType<F>> OFOxm<F> fromMasked(Masked<F> masked, MatchField<F> field) {
switch (field.id) {
case ARP_OP:
return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)(masked.getValue())), (ArpOpcode)((Object)(masked.getMask()))));
case ARP_SHA:
return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ARP_SPA:
return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case ARP_THA:
return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ARP_TPA:
return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case BSN_EGR_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_GLOBAL_VRF_ALLOWED:
return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case BSN_IN_PORTS_128:
return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)(masked.getValue())), (OFBitMask128)((Object)(masked.getMask()))));
case BSN_IN_PORTS_512:
return (OFOxm<F>)((Object)bsnInPorts512Masked((OFBitMask512)((Object)(masked.getValue())), (OFBitMask512)((Object)(masked.getMask()))));
case BSN_INGRESS_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnIngressPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L2_CACHE_HIT:
return (OFOxm<F>)((Object)bsnL2CacheHitMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case BSN_L3_DST_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L3_INTERFACE_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_L3_SRC_CLASS_ID:
return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_LAG_ID:
return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)(masked.getValue())), (LagId)((Object)(masked.getMask()))));
case BSN_TCP_FLAGS:
return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask()))));
case BSN_UDF0:
return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF1:
return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF2:
return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF3:
return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF4:
return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF5:
return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF6:
return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_UDF7:
return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask()))));
case BSN_VLAN_XLATE_PORT_GROUP_ID:
return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask()))));
case BSN_VRF:
return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)(masked.getValue())), (VRF)((Object)(masked.getMask()))));
case ETH_DST:
return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ETH_SRC:
return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case ETH_TYPE:
return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)(masked.getValue())), (EthType)((Object)(masked.getMask()))));
case ICMPV4_CODE:
return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)(masked.getValue())), (ICMPv4Code)((Object)(masked.getMask()))));
case ICMPV4_TYPE:
return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)(masked.getValue())), (ICMPv4Type)((Object)(masked.getMask()))));
case ICMPV6_CODE:
return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case ICMPV6_TYPE:
return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case IN_PHY_PORT:
return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask()))));
case IN_PORT:
return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask()))));
case IP_DSCP:
return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)(masked.getValue())), (IpDscp)((Object)(masked.getMask()))));
case IP_ECN:
return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)(masked.getValue())), (IpEcn)((Object)(masked.getMask()))));
case IP_PROTO:
return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)(masked.getValue())), (IpProtocol)((Object)(masked.getMask()))));
case IPV4_DST:
return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case IPV4_SRC:
return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case IPV6_DST:
return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case IPV6_FLABEL:
return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)(masked.getValue())), (IPv6FlowLabel)((Object)(masked.getMask()))));
case IPV6_ND_SLL:
return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case IPV6_ND_TARGET:
return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case IPV6_ND_TLL:
return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case IPV6_SRC:
return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask()))));
case METADATA:
return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)(masked.getValue())), (OFMetadata)((Object)(masked.getMask()))));
case MPLS_LABEL:
return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask()))));
case MPLS_TC:
return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask()))));
case SCTP_DST:
return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case SCTP_SRC:
return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TCP_DST:
return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TCP_SRC:
return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case TUNNEL_IPV4_DST:
return (OFOxm<F>)((Object)tunnelIpv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case TUNNEL_IPV4_SRC:
return (OFOxm<F>)((Object)tunnelIpv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask()))));
case UDP_DST:
return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case UDP_SRC:
return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask()))));
case VLAN_PCP:
return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)(masked.getValue())), (VlanPcp)((Object)(masked.getMask()))));
case VLAN_VID:
return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)(masked.getValue())), (OFVlanVidMatch)((Object)(masked.getMask()))));
case BSN_INNER_ETH_DST:
return (OFOxm<F>)((Object)bsnInnerEthDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case BSN_INNER_ETH_SRC:
return (OFOxm<F>)((Object)bsnInnerEthSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask()))));
case BSN_VXLAN_NETWORK_ID:
return (OFOxm<F>)((Object)bsnVxlanNetworkIdMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask()))));
case IPV6_EXTHDR:
return (OFOxm<F>)((Object)ipv6ExthdrMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask()))));
case MPLS_BOS:
return (OFOxm<F>)((Object)mplsBosMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
case TUNNEL_ID:
return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)(masked.getValue())), (U64)((Object)(masked.getMask()))));
case PBB_UCA:
return (OFOxm<F>)((Object)pbbUcaMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask()))));
default:
return null;
}
}
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 847 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1637 |
if(tcpDst == null)
throw new NullPointerException("Property tcpDst must not be null");
//
// normalize match fields according to current OpenVSwitch behavior. When prerequisites for a field are not met
// e.g., eth_type is not set to 0x800, OVS sets the value of corresponding ignored fields (e.g.,
// ip_src, tcp_dst) to 0, and sets the wildcard bit to 1.
if(ethType.equals(EthType.IPv4)) {
// IP
if(ipProto.equals(IpProtocol.TCP) || ipProto.equals(IpProtocol.UDP) || ipProto.equals(IpProtocol.ICMP)) {
// fully speced, wildcards and all values are fine
// normalize 32-63 ipv4 src 'mask' to a full bitmask
if((wildcards & OFPFW_NW_SRC_ALL) != 0)
wildcards |= OFPFW_NW_SRC_MASK;
// normalize 32-63 ipv4 dst 'mask' to a full bitmask
if((wildcards & OFPFW_NW_DST_ALL) != 0)
wildcards |= OFPFW_NW_DST_MASK;
} else {
// normalize 32-63 ipv4 src 'mask' to a full bitmask
if((wildcards & OFPFW_NW_SRC_ALL) != 0)
wildcards |= OFPFW_NW_SRC_MASK;
// normalize 32-63 ipv4 dst 'mask' to a full bitmask
if((wildcards & OFPFW_NW_DST_ALL) != 0)
wildcards |= OFPFW_NW_DST_MASK;
// not TCP/UDP/ICMP -> Clear TP wildcards for the wire
wildcards |= (OFPFW_TP_SRC | OFPFW_TP_DST);
tcpSrc = TransportPort.NONE;
tcpDst = TransportPort.NONE;
}
} else if (ethType.equals(EthType.ARP)) {
// normalize 32-63 ipv4 src 'mask' to a full bitmask
if((wildcards & OFPFW_NW_SRC_ALL) != 0)
wildcards |= OFPFW_NW_SRC_MASK;
// normalize 32-63 ipv4 dst 'mask' to a full bitmask
if((wildcards & OFPFW_NW_DST_ALL) != 0)
wildcards |= OFPFW_NW_DST_MASK;
// ARP: clear NW_TOS / TP wildcards for the wire
wildcards |= ( OFPFW_NW_TOS | OFPFW_TP_SRC | OFPFW_TP_DST);
ipDscp = IpDscp.NONE;
tcpSrc = TransportPort.NONE;
tcpDst = TransportPort.NONE;
} else {
// not even IP. Clear NW/TP wildcards for the wire
wildcards |= ( OFPFW_NW_TOS | OFPFW_NW_PROTO | OFPFW_NW_SRC_MASK | OFPFW_NW_DST_MASK | OFPFW_TP_SRC | OFPFW_TP_DST);
ipDscp = IpDscp.NONE;
ipProto = IpProtocol.NONE;
ipv4Src = IPv4Address.NONE;
ipv4Dst = IPv4Address.NONE;
tcpSrc = TransportPort.NONE;
tcpDst = TransportPort.NONE;
}
return new OFMatchV1Ver10(
wildcards,
inPort,
ethSrc,
ethDst,
vlanVid,
vlanPcp,
ethType,
ipDscp,
ipProto,
ipv4Src,
ipv4Dst,
tcpSrc,
tcpDst
);
}
@SuppressWarnings("unchecked")
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
if (isFullyWildcarded(field))
return null;
Object result;
switch (field.id) {
case IN_PORT:
result = inPort;
break;
case ETH_DST:
result = ethDst;
break;
case ETH_SRC:
result = ethSrc;
break;
case ETH_TYPE:
result = ethType;
break;
case VLAN_VID:
result = vlanVid;
break;
case VLAN_PCP:
result = vlanPcp;
break;
case ARP_OP:
result = ArpOpcode.of(ipProto.getIpProtocolNumber());
break;
case ARP_SPA:
result = ipv4Src;
break;
case ARP_TPA:
result = ipv4Dst;
break;
case IP_DSCP:
result = ipDscp;
break;
case IP_PROTO:
result = ipProto;
break;
case IPV4_SRC:
result = ipv4Src;
break;
case IPV4_DST:
result = ipv4Dst;
break;
case TCP_SRC:
result = tcpSrc;
break;
case TCP_DST:
result = tcpDst;
break;
case UDP_SRC:
result = tcpSrc;
break;
case UDP_DST:
result = tcpDst;
break;
case SCTP_SRC:
result = tcpSrc;
break;
case SCTP_DST:
result = tcpDst;
break;
case ICMPV4_TYPE:
result = tcpSrc;
break;
case ICMPV4_CODE:
result = tcpDst;
break;
// NOT SUPPORTED:
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
return (F)result;
}
@SuppressWarnings("unchecked")
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
if (!isPartiallyMasked(field))
return null;
Object result;
switch (field.id) {
case IPV4_SRC:
case ARP_SPA:
int srcBitMask = (-1) << (32 - getIpv4SrcCidrMaskLen());
result = IPv4AddressWithMask.of(ipv4Src, IPv4Address.of(srcBitMask));
break;
case IPV4_DST:
case ARP_TPA:
int dstMaskedBits = Math.min(32, (wildcards & OFPFW_NW_DST_MASK) >> OFPFW_NW_DST_SHIFT);
int dstBitMask = (-1) << (32 - getIpv4DstCidrMaskLen());
result = IPv4AddressWithMask.of(ipv4Dst, IPv4Address.of(dstBitMask));
break;
default:
throw new UnsupportedOperationException("OFMatch does not support masked matching on field " + field.getName());
}
return (Masked<F>)result;
}
@Override
public boolean supports(MatchField<?> field) {
switch (field.id) {
case IN_PORT:
case ETH_DST:
case ETH_SRC:
case ETH_TYPE:
case VLAN_VID:
case VLAN_PCP:
case ARP_OP:
case ARP_SPA:
case ARP_TPA:
case IP_DSCP:
case IP_PROTO:
case IPV4_SRC:
case IPV4_DST:
case TCP_SRC:
case TCP_DST:
case UDP_SRC:
case UDP_DST:
case SCTP_SRC:
case SCTP_DST:
case ICMPV4_TYPE:
case ICMPV4_CODE:
return true;
default:
return false;
}
}
@Override
public boolean supportsMasked(MatchField<?> field) {
switch (field.id) {
case ARP_SPA:
case ARP_TPA:
case IPV4_SRC:
case IPV4_DST:
return true;
default:
return false;
}
}
@Override
public boolean isExact(MatchField<?> field) {
switch (field.id) {
case IN_PORT:
return (this.wildcards & OFPFW_IN_PORT) == 0;
case ETH_DST:
return (this.wildcards & OFPFW_DL_DST) == 0;
case ETH_SRC:
return (this.wildcards & OFPFW_DL_SRC) == 0;
case ETH_TYPE:
return (this.wildcards & OFPFW_DL_TYPE) == 0;
case VLAN_VID:
return (this.wildcards & OFPFW_DL_VLAN) == 0;
case VLAN_PCP:
return (this.wildcards & OFPFW_DL_VLAN_PCP) == 0;
case ARP_OP:
return (this.wildcards & OFPFW_NW_PROTO) == 0;
case ARP_SPA:
return this.getIpv4SrcCidrMaskLen() >= 32;
case ARP_TPA:
return this.getIpv4DstCidrMaskLen() >= 32;
case IP_DSCP:
return (this.wildcards & OFPFW_NW_TOS) == 0;
case IP_PROTO:
return (this.wildcards & OFPFW_NW_PROTO) == 0;
case IPV4_SRC:
return this.getIpv4SrcCidrMaskLen() >= 32;
case IPV4_DST:
return this.getIpv4DstCidrMaskLen() >= 32;
case TCP_SRC:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case TCP_DST:
return (this.wildcards & OFPFW_TP_DST) == 0;
case UDP_SRC:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case UDP_DST:
return (this.wildcards & OFPFW_TP_DST) == 0;
case SCTP_SRC:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case SCTP_DST:
return (this.wildcards & OFPFW_TP_DST) == 0;
case ICMPV4_TYPE:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case ICMPV4_CODE:
return (this.wildcards & OFPFW_TP_DST) == 0;
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
}
/**
* Parse this match's wildcard fields and return the number of significant
* bits in the IP destination field. NOTE: this returns the number of bits
* that are fixed, i.e., like CIDR, not the number of bits that are free
* like OpenFlow encodes.
*
* @return A number between 0 (matches all IPs) and 32 (exact match)
*/
public int getIpv4DstCidrMaskLen() {
return Math.max(32 - ((wildcards & OFPFW_NW_DST_MASK) >> OFPFW_NW_DST_SHIFT),
0);
}
/**
* Parse this match's wildcard fields and return the number of significant
* bits in the IP destination field. NOTE: this returns the number of bits
* that are fixed, i.e., like CIDR, not the number of bits that are free
* like OpenFlow encodes.
*
* @return A number between 0 (matches all IPs) and 32 (exact match)
*/
public int getIpv4SrcCidrMaskLen() {
return Math.max(32 - ((wildcards & OFPFW_NW_SRC_MASK) >> OFPFW_NW_SRC_SHIFT),
0);
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
switch (field.id) {
case IN_PORT:
return (this.wildcards & OFPFW_IN_PORT) != 0;
case ETH_DST:
return (this.wildcards & OFPFW_DL_DST) != 0;
case ETH_SRC:
return (this.wildcards & OFPFW_DL_SRC) != 0;
case ETH_TYPE:
return (this.wildcards & OFPFW_DL_TYPE) != 0;
case VLAN_VID:
return (this.wildcards & OFPFW_DL_VLAN) != 0;
case VLAN_PCP:
return (this.wildcards & OFPFW_DL_VLAN_PCP) != 0;
case ARP_OP:
return (this.wildcards & OFPFW_NW_PROTO) != 0;
case ARP_SPA:
return this.getIpv4SrcCidrMaskLen() <= 0;
case ARP_TPA:
return this.getIpv4DstCidrMaskLen() <= 0;
case IP_DSCP:
return (this.wildcards & OFPFW_NW_TOS) != 0;
case IP_PROTO:
return (this.wildcards & OFPFW_NW_PROTO) != 0;
case TCP_SRC:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case TCP_DST:
return (this.wildcards & OFPFW_TP_DST) != 0;
case UDP_SRC:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case UDP_DST:
return (this.wildcards & OFPFW_TP_DST) != 0;
case SCTP_SRC:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case SCTP_DST:
return (this.wildcards & OFPFW_TP_DST) != 0;
case ICMPV4_TYPE:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case ICMPV4_CODE:
return (this.wildcards & OFPFW_TP_DST) != 0;
case IPV4_SRC:
return this.getIpv4SrcCidrMaskLen() <= 0;
case IPV4_DST:
return this.getIpv4DstCidrMaskLen() <= 0;
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
switch (field.id) {
case ARP_SPA:
case IPV4_SRC:
int srcCidrLen = getIpv4SrcCidrMaskLen();
return srcCidrLen > 0 && srcCidrLen < 32;
case ARP_TPA:
case IPV4_DST:
int dstCidrLen = getIpv4DstCidrMaskLen();
return dstCidrLen > 0 && dstCidrLen < 32;
default:
throw new UnsupportedOperationException("OFMatch does not support masked matching on field " + field.getName());
}
}
private final void initWildcards() {
if(!wildcardsSet) {
wildcards = parentMessage.wildcards; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 100 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 100 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 100 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 100 |
private final Logger log = LogManager.getLogger(OVXFlowDeleteStrictVer10.class.getName());
private OVXSwitch sw = null;
private final List<OFAction> approvedActions = new LinkedList<OFAction>();
private long ovxCookie = -1;
@Override
public void devirtualize(final OVXSwitch sw) {
/* Drop LLDP-matching messages sent by some applications */
if (((OFMatchV1)this.match).getEthType().getValue() == Ethernet.TYPE_LLDP) {
return;
}
this.sw = sw;
FlowTable ft = this.sw.getFlowTable();
int bufferId = OFBufferId.NO_BUFFER.getInt();
if (sw.getFromBufferMap(this.bufferId.getInt()) != null) {
bufferId = sw.getFromBufferMap(this.bufferId.getInt()).getBufferId().getInt();
}
final short inport = ((OFMatchV1)this.getMatch()).getInPort().getShortPortNumber();
/* let flow table process FlowMod, generate cookie as needed */
boolean pflag = ft.handleFlowMods(this.clone());
/* used by OFAction virtualization */
OVXMatch ovxMatch = new OVXMatch((OFMatchV1)this.match);
ovxCookie = ((OVXFlowTable) ft).getCookie(this, false);
ovxMatch.setCookie(ovxCookie);
this.cookie=U64.of(ovxMatch.getCookie());
for (OFAction act : this.getActions()) {
try {
if(act.getType().equals(OFActionType.SET_NW_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionDataLayerDestination(((OFActionSetDlDst)act).getDlAddr());
else if(act.getType().equals(OFActionType.SET_NW_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionDataLayerSource(((OFActionSetDlSrc)act).getDlAddr());
else if(act.getType().equals(OFActionType.ENQUEUE))
act=OVXFactoryInst.myOVXFactory.buildOVXActionEnqueue(((OFActionEnqueue)act).getPort(),((OFActionEnqueue)act).getQueueId());
else if(act.getType().equals(OFActionType.SET_NW_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerDestination(((OFActionSetNwDst)act).getNwAddr());
else if(act.getType().equals(OFActionType.SET_NW_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerSource(((OFActionSetNwSrc)act).getNwAddr());
else if(act.getType().equals(OFActionType.SET_NW_TOS))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkTypeOfService(((OFActionSetNwTos)act).getNwTos());
else if(act.getType().equals(OFActionType.OUTPUT))
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutput(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
else if(act.getType().equals(OFActionType.STRIP_VLAN))
act=OVXFactoryInst.myOVXFactory.buildOVXActionStripVirtualLan();
else if(act.getType().equals(OFActionType.SET_TP_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionTransportLayerDestination(((OFActionSetTpDst)act).getTpPort());
else if(act.getType().equals(OFActionType.SET_TP_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionTransportLayerSource(((OFActionSetTpSrc)act).getTpPort());
else if(act.getType().equals(OFActionType.SET_VLAN_VID))
act=OVXFactoryInst.myOVXFactory.buildOVXActionVirtualLanIdentifier(((OFActionSetVlanVid)act).getVlanVid());
else if(act.getType().equals(OFActionType.SET_VLAN_PCP))
act=OVXFactoryInst.myOVXFactory.buildOVXActionVirtualLanPriorityCodePoint(((OFActionSetVlanPcp)act).getVlanPcp());
((VirtualizableAction) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
}
final OVXPort ovxInPort = sw.getPort(inport);
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
int wcard = ((OFMatchV1)this.match).getWildcards()
& (~OFMatchV1Ver10.OFPFW_IN_PORT);
this.match=((OFMatchV1)this.match).createBuilder().setWildcards(wcard).build();
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private void prepAndSendSouth(OVXPort inPort, boolean pflag) {
if (!inPort.isActive()) {
log.warn("Virtual network {}: port {} on switch {} is down.",
sw.getTenantId(), inPort.getPortNo(),
sw.getSwitchName());
return;
}
this.match=((OFMatchV1)this.getMatch()).createBuilder().setInPort(OFPort.ofShort(inPort.getPhysicalPortNumber())).build();
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) {
this.prependRewriteActions();
} else {
IPMapper.rewriteMatch(sw.getTenantId(), this.match);
// TODO: Verify why we have two send points... and if this is
// the right place for the match rewriting
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV1)this.match).getEthSrc().getBytes(),
((OFMatchV1)this.match).getEthDst().getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
lUtils.rewriteMatch(this.getMatch());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), this);
throw new DroppedMessageException();
}
}
}
}
} catch (NetworkMappingException e) {
log.warn(
"OVXFlowMod. Error retrieving the network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
} catch (DroppedMessageException e) {
log.warn(
"OVXFlowMod. Error retrieving flowId in network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
}
this.actions=this.approvedActions;
if (pflag) {
this.flags.add(OFFlowModFlags.SEND_FLOW_REM);
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_SRC)) {
final OVXActionNetworkLayerSource srcAct =OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerSource
(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV1)this.match).getIpv4Src().getInt())));
this.approvedActions.add(0, srcAct);
}
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_DST)) {
final OVXActionNetworkLayerDestination dstAct =OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerDestination
(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV1)this.match).getIpv4Dst().getInt())));
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.flags.contains(OFFlowModFlagsSerializerVer10.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null;
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(this.getXid(),this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(),this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions()); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 72 |
private final Logger log = LogManager.getLogger(OVXFlowDeleteStrictVer13.class.getName());
private OVXSwitch sw = null;
private final List<OFAction> approvedActions = new LinkedList<OFAction>();
private long ovxCookie = -1;
@Override
public void devirtualize(final OVXSwitch sw) {
/* Drop LLDP-matching messages sent by some applications */
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE) != null) {
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE).getValue() == Ethernet.TYPE_LLDP) {
return;
}
}
this.sw = sw;
FlowTable ft = this.sw.getFlowTable();
int bufferId = OFBufferId.NO_BUFFER.getInt();
if (sw.getFromBufferMap(this.bufferId.getInt()) != null) {
bufferId = sw.getFromBufferMap(this.bufferId.getInt()).getBufferId().getInt();
}
short inport = -1;
if (((OFMatchV3)this.getMatch()).get(MatchField.IN_PORT) != null) {
inport = ((OFMatchV3) this.getMatch()).get(MatchField.IN_PORT).getShortPortNumber();
}
/* let flow table process FlowMod, generate cookie as needed */
boolean pflag = ft.handleFlowMods(this.clone());
/* used by OFAction virtualization */
OVXMatchV3 ovxMatch = new OVXMatchV3((OFMatchV3)this.getMatch());
ovxCookie = ((OVXFlowTable) ft).getCookie(this, false);
ovxMatch.setCookie(ovxCookie);
this.cookie=U64.of(ovxMatch.getCookie());
for (OFAction act: this.getActions()) {
try {
if (act.getType().equals(OFActionType.SET_FIELD)) {
OFOxm<?> oxmField = ((OFActionSetField)act).getField();
act = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmField);
} else if (act.getType().equals(OFActionType.OUTPUT)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutputV3(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
} else if (act.getType().equals(OFActionType.SET_QUEUE)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionSetQueue(((OFActionSetQueue)act).getQueueId());
} else if (act.getType().equals(OFActionType.PUSH_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPushVlan(((OFActionPushVlan)act).getEthertype());
} else if (act.getType().equals(OFActionType.POP_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPopVlan();
}
((VirtualizableActionV3) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
}
final OVXPort ovxInPort = sw.getPort(inport);
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
this.match = addtoMatch((OFMatchV3)this.match, iport.getPortNo());
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
for (OFOxm<?> ofOxm : myList) {
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
OFOxmList oxmList = new OFOxmList(oxmMap);
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
}
private void prepAndSendSouth(OVXPort inPort, boolean pflag) {
if (!inPort.isActive()) {
log.warn("Virtual network {}: port {} on switch {} is down.",
sw.getTenantId(), inPort.getPortNo(),
sw.getSwitchName());
return;
}
this.match = addtoMatch((OFMatchV3)this.match, OFPort.ofShort(inPort.getPhysicalPortNumber()));
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) {
this.prependRewriteActions();
} else {
IPMapper.rewriteMatch(sw.getTenantId(), this.match);
// TODO: Verify why we have two send points... and if this is
// the right place for the match rewriting
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV3)this.match).get(MatchField.ETH_SRC).getBytes(),
((OFMatchV3)this.match).get(MatchField.ETH_DST).getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
this.match = lUtils.rewriteMatch(this.getMatch());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), this);
throw new DroppedMessageException();
}
}
}
}
} catch (NetworkMappingException e) {
log.warn(
"OVXFlowMod. Error retrieving the network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
} catch (DroppedMessageException e) {
log.warn(
"OVXFlowMod. Error retrieving flowId in network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
}
this.setActions(this.approvedActions);
if (pflag) {
this.flags.add(OFFlowModFlags.SEND_FLOW_REM);
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_SRC)) {
OFOxmIpv4Src oxmIpv4Src = new OFOxmIpv4SrcVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_SRC).getInt())));
final OVXActionSetField srcAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Src);
this.approvedActions.add(0, srcAct);
}
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_DST)) {
OFOxmIpv4Dst oxmIpv4Dst = new OFOxmIpv4DstVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_DST).getInt())));
final OVXActionSetField dstAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Dst);
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.flags.contains(OFFlowModFlagsSerializerVer13.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null;
if (OVXFactoryInst.ofversion == 10) {
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(this.getXid(), this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(), this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions()); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 100 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 100 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 105 |
boolean pflag = ft.handleFlowMods(this.clone());
/* used by OFAction virtualization */
OVXMatchV3 ovxMatch = new OVXMatchV3((OFMatchV3)this.getMatch());
ovxCookie = ((OVXFlowTable) ft).getCookie(this, false);
ovxMatch.setCookie(ovxCookie);
this.cookie=U64.of(ovxMatch.getCookie());
for (OFAction act: this.getActions()) {
try {
if (act.getType().equals(OFActionType.SET_FIELD)) {
OFOxm<?> oxmField = ((OFActionSetField)act).getField();
act = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmField);
} else if (act.getType().equals(OFActionType.OUTPUT)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutputV3(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
} else if (act.getType().equals(OFActionType.SET_QUEUE)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionSetQueue(((OFActionSetQueue)act).getQueueId());
} else if (act.getType().equals(OFActionType.PUSH_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPushVlan(((OFActionPushVlan)act).getEthertype());
} else if (act.getType().equals(OFActionType.POP_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPopVlan();
}
((VirtualizableActionV3) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
}
final OVXPort ovxInPort = sw.getPort(inport);
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
this.match = addtoMatch((OFMatchV3)this.match, iport.getPortNo());
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
for (OFOxm<?> ofOxm : myList) {
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
OFOxmList oxmList = new OFOxmList(oxmMap);
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
}
private void prepAndSendSouth(OVXPort inPort, boolean pflag) {
if (!inPort.isActive()) {
log.warn("Virtual network {}: port {} on switch {} is down.",
sw.getTenantId(), inPort.getPortNo(),
sw.getSwitchName());
return;
}
this.match = addtoMatch((OFMatchV3)this.match, OFPort.ofShort(inPort.getPhysicalPortNumber()));
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) {
this.prependRewriteActions();
} else {
IPMapper.rewriteMatch(sw.getTenantId(), this.match);
// TODO: Verify why we have two send points... and if this is
// the right place for the match rewriting
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV3)this.match).get(MatchField.ETH_SRC).getBytes(),
((OFMatchV3)this.match).get(MatchField.ETH_DST).getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
this.match = lUtils.rewriteMatch(this.getMatch());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), this);
throw new DroppedMessageException();
}
}
}
}
} catch (NetworkMappingException e) {
log.warn(
"OVXFlowMod. Error retrieving the network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
} catch (DroppedMessageException e) {
log.warn(
"OVXFlowMod. Error retrieving flowId in network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
}
this.setActions(this.approvedActions);
if (pflag) {
this.flags.add(OFFlowModFlags.SEND_FLOW_REM);
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_SRC)) {
OFOxmIpv4Src oxmIpv4Src = new OFOxmIpv4SrcVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_SRC).getInt())));
final OVXActionSetField srcAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Src);
this.approvedActions.add(0, srcAct);
}
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_DST)) {
OFOxmIpv4Dst oxmIpv4Dst = new OFOxmIpv4DstVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_DST).getInt())));
final OVXActionSetField dstAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Dst);
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.flags.contains(OFFlowModFlagsSerializerVer13.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 101 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 102 |
System.out.println("HandleFlowMod");
boolean pflag = ft.handleFlowMods(this.clone());
/* used by OFAction virtualization */
OVXMatchV3 ovxMatch = new OVXMatchV3((OFMatchV3)this.getMatch());
ovxCookie = ((OVXFlowTable) ft).getCookie(this, false);
ovxMatch.setCookie(ovxCookie);
this.cookie=U64.of(ovxMatch.getCookie());
for (OFAction act: this.getActions()) {
try {
if (act.getType().equals(OFActionType.SET_FIELD)) {
OFOxm<?> oxmField = ((OFActionSetField)act).getField();
act = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmField);
} else if (act.getType().equals(OFActionType.OUTPUT)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutputV3(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
} else if (act.getType().equals(OFActionType.SET_QUEUE)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionSetQueue(((OFActionSetQueue)act).getQueueId());
} else if (act.getType().equals(OFActionType.PUSH_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPushVlan(((OFActionPushVlan)act).getEthertype());
} else if (act.getType().equals(OFActionType.POP_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPopVlan();
}
((VirtualizableActionV3) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
}
final OVXPort ovxInPort = sw.getPort(inport);
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
this.match = addtoMatch((OFMatchV3)this.match, iport.getPortNo());
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
for (OFOxm<?> ofOxm : myList) {
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
OFOxmList oxmList = new OFOxmList(oxmMap);
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
}
private void prepAndSendSouth(OVXPort inPort, boolean pflag) {
if (!inPort.isActive()) {
log.warn("Virtual network {}: port {} on switch {} is down.",
sw.getTenantId(), inPort.getPortNo(),
sw.getSwitchName());
return;
}
this.match = addtoMatch((OFMatchV3)this.match, OFPort.ofShort(inPort.getPhysicalPortNumber()));
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) {
this.prependRewriteActions();
} else {
IPMapper.rewriteMatch(sw.getTenantId(), this.match);
// TODO: Verify why we have two send points... and if this is
// the right place for the match rewriting
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV3)this.match).get(MatchField.ETH_SRC).getBytes(),
((OFMatchV3)this.match).get(MatchField.ETH_DST).getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
this.match = lUtils.rewriteMatch(this.getMatch());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), this);
throw new DroppedMessageException();
}
}
}
}
} catch (NetworkMappingException e) {
log.warn(
"OVXFlowMod. Error retrieving the network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
} catch (DroppedMessageException e) {
log.warn(
"OVXFlowMod. Error retrieving flowId in network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
}
this.setActions(this.approvedActions);
if (pflag) {
this.flags.add(OFFlowModFlags.SEND_FLOW_REM);
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (this.getMatch().get(MatchField.IPV4_SRC) != null) { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 100 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 102 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 100 |
boolean pflag = ft.handleFlowMods(this.clone());
/* used by OFAction virtualization */
OVXMatchV3 ovxMatch = new OVXMatchV3((OFMatchV3)this.getMatch());
ovxCookie = ((OVXFlowTable) ft).getCookie(this, false);
ovxMatch.setCookie(ovxCookie);
this.cookie=U64.of(ovxMatch.getCookie());
for (OFAction act: this.getActions()) {
try {
if (act.getType().equals(OFActionType.SET_FIELD)) {
OFOxm<?> oxmField = ((OFActionSetField)act).getField();
act = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmField);
} else if (act.getType().equals(OFActionType.OUTPUT)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutputV3(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
} else if (act.getType().equals(OFActionType.SET_QUEUE)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionSetQueue(((OFActionSetQueue)act).getQueueId());
} else if (act.getType().equals(OFActionType.PUSH_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPushVlan(((OFActionPushVlan)act).getEthertype());
} else if (act.getType().equals(OFActionType.POP_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPopVlan();
}
((VirtualizableActionV3) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
}
final OVXPort ovxInPort = sw.getPort(inport);
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
this.match = addtoMatch((OFMatchV3)this.match, iport.getPortNo());
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
for (OFOxm<?> ofOxm : myList) {
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
OFOxmList oxmList = new OFOxmList(oxmMap);
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
}
private void prepAndSendSouth(OVXPort inPort, boolean pflag) {
if (!inPort.isActive()) {
log.warn("Virtual network {}: port {} on switch {} is down.",
sw.getTenantId(), inPort.getPortNo(),
sw.getSwitchName());
return;
}
this.match = addtoMatch((OFMatchV3)this.match, OFPort.ofShort(inPort.getPhysicalPortNumber()));
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) {
this.prependRewriteActions();
} else {
IPMapper.rewriteMatch(sw.getTenantId(), this.match);
// TODO: Verify why we have two send points... and if this is
// the right place for the match rewriting
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV3)this.match).get(MatchField.ETH_SRC).getBytes(),
((OFMatchV3)this.match).get(MatchField.ETH_DST).getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
this.match = lUtils.rewriteMatch(this.getMatch());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), this);
throw new DroppedMessageException();
}
}
}
}
} catch (NetworkMappingException e) {
log.warn(
"OVXFlowMod. Error retrieving the network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
} catch (DroppedMessageException e) {
log.warn(
"OVXFlowMod. Error retrieving flowId in network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
}
this.setActions(this.approvedActions);
if (pflag) {
this.flags.add(OFFlowModFlags.SEND_FLOW_REM);
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_SRC)) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1224 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 2013 |
switch (field.id) {
case ETH_DST:
setEthDst((MacAddress) value);
wildcards &= ~OFPFW_DL_DST;
break;
case ETH_SRC:
setEthSrc((MacAddress) value);
wildcards &= ~OFPFW_DL_SRC;
break;
case ETH_TYPE:
setEthType((EthType) value);
wildcards &= ~OFPFW_DL_TYPE;
break;
case ICMPV4_CODE:
setTcpDst(TransportPort.of(((ICMPv4Code)value).getCode()));
wildcards &= ~OFPFW_TP_DST;
break;
case ICMPV4_TYPE:
setTcpSrc(TransportPort.of(((ICMPv4Type)value).getType()));
wildcards &= ~OFPFW_TP_SRC;
break;
case IN_PORT:
setInPort((OFPort) value);
wildcards &= ~OFPFW_IN_PORT;
break;
case ARP_OP:
setIpProto(IpProtocol.of((short)((ArpOpcode)value).getOpcode()));
wildcards &= ~OFPFW_NW_PROTO;
break;
case ARP_TPA:
case IPV4_DST:
setIpv4Dst((IPv4Address) value);
wildcards &= ~OFPFW_NW_DST_MASK;
break;
case ARP_SPA:
case IPV4_SRC:
setIpv4Src((IPv4Address) value);
wildcards &= ~OFPFW_NW_SRC_MASK;
break;
case IP_DSCP:
setIpDscp((IpDscp) value);
wildcards &= ~OFPFW_NW_TOS;
break;
case IP_PROTO:
setIpProto((IpProtocol) value);
wildcards &= ~OFPFW_NW_PROTO;
break;
case SCTP_DST:
setTcpDst((TransportPort) value);
wildcards &= ~OFPFW_TP_DST;
break;
case SCTP_SRC:
setTcpSrc((TransportPort) value);
wildcards &= ~OFPFW_TP_SRC;
break;
case TCP_DST:
setTcpDst((TransportPort) value);
wildcards &= ~OFPFW_TP_DST;
break;
case TCP_SRC:
setTcpSrc((TransportPort) value);
wildcards &= ~OFPFW_TP_SRC;
break;
case UDP_DST:
setTcpDst((TransportPort) value);
wildcards &= ~OFPFW_TP_DST;
break;
case UDP_SRC:
setTcpSrc((TransportPort) value);
wildcards &= ~OFPFW_TP_SRC;
break;
case VLAN_PCP:
setVlanPcp((VlanPcp) value);
wildcards &= ~OFPFW_DL_VLAN_PCP;
break;
case VLAN_VID:
setVlanVid((OFVlanVidMatch) value);
wildcards &= ~OFPFW_DL_VLAN;
break;
default:
throw new UnsupportedOperationException(
"OFMatch does not support matching on field " + field.getName());
}
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(MatchField<F> field,
F value, F mask) {
initWildcards();
switch (field.id) {
case ARP_SPA:
case ARP_TPA:
case IPV4_DST:
case IPV4_SRC:
Object valObj = value;
Object masObj = mask;
IPv4Address ip = ((IPv4Address)valObj);
int maskval = ((IPv4Address)masObj).getInt();
if (Integer.bitCount(~maskval + 1) != 1)
throw new UnsupportedOperationException("OFMatch only supports CIDR masks for IPv4");
int maskLen = 32 - Integer.bitCount(maskval);
switch(field.id) {
case ARP_TPA:
case IPV4_DST:
setIpv4Dst(ip);
wildcards = (wildcards &~OFPFW_NW_DST_MASK) | (maskLen << OFPFW_NW_DST_SHIFT);
break;
case ARP_SPA:
case IPV4_SRC:
setIpv4Src(ip);
wildcards = (wildcards &~OFPFW_NW_SRC_MASK) | (maskLen << OFPFW_NW_SRC_SHIFT);
break;
default:
// Cannot really get here
break;
}
break;
default:
throw new UnsupportedOperationException("OFMatch does not support masked matching on field " + field.getName());
}
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(MatchField<F> field, Masked<F> valueWithMask)
throws UnsupportedOperationException {
return this.setMasked(field, valueWithMask.getValue(), valueWithMask.getMask());
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
initWildcards();
switch (field.id) {
case ETH_DST:
setEthDst(MacAddress.NONE);
wildcards |= OFPFW_DL_DST;
break;
case ETH_SRC:
setEthSrc(MacAddress.NONE);
wildcards |= OFPFW_DL_SRC;
break;
case ETH_TYPE:
setEthType(EthType.NONE);
wildcards |= OFPFW_DL_TYPE;
break;
case ICMPV4_CODE:
case TCP_DST:
case UDP_DST:
case SCTP_DST:
setTcpDst(TransportPort.NONE);
wildcards |= OFPFW_TP_DST;
break;
case ICMPV4_TYPE:
case TCP_SRC:
case UDP_SRC:
case SCTP_SRC:
setTcpSrc(TransportPort.NONE);
wildcards |= OFPFW_TP_SRC;
break;
case IN_PORT:
setInPort(OFPort.of(0)); // NOTE: not 'NONE' -- that is 0xFF for ports
wildcards |= OFPFW_IN_PORT;
break;
case ARP_TPA:
case IPV4_DST:
setIpv4Dst(IPv4Address.NONE);
wildcards |= OFPFW_NW_DST_MASK;
break;
case ARP_SPA:
case IPV4_SRC:
setIpv4Src(IPv4Address.NONE);
wildcards |= OFPFW_NW_SRC_MASK;
break;
case IP_DSCP:
setIpDscp(IpDscp.NONE);
wildcards |= OFPFW_NW_TOS;
break;
case IP_PROTO:
setIpProto(IpProtocol.NONE);
wildcards |= OFPFW_NW_PROTO;
break;
case VLAN_PCP:
setVlanPcp(VlanPcp.NONE);
wildcards |= OFPFW_DL_VLAN_PCP;
break;
case VLAN_VID:
setVlanVid(OFVlanVidMatch.NONE);
wildcards |= OFPFW_DL_VLAN;
break;
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
return this;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 369 |
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 802 |
@Override
public int getType() {
return 0x0;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFMatchV2.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFMatchV2.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public MacAddress getEthSrc() {
return ethSrc;
}
@Override
public OFMatchV2.Builder setEthSrc(MacAddress ethSrc) {
this.ethSrc = ethSrc;
this.ethSrcSet = true;
return this;
}
@Override
public MacAddress getEthSrcMask() {
return ethSrcMask;
}
@Override
public OFMatchV2.Builder setEthSrcMask(MacAddress ethSrcMask) {
this.ethSrcMask = ethSrcMask;
this.ethSrcMaskSet = true;
return this;
}
@Override
public MacAddress getEthDst() {
return ethDst;
}
@Override
public OFMatchV2.Builder setEthDst(MacAddress ethDst) {
this.ethDst = ethDst;
this.ethDstSet = true;
return this;
}
@Override
public MacAddress getEthDstMask() {
return ethDstMask;
}
@Override
public OFMatchV2.Builder setEthDstMask(MacAddress ethDstMask) {
this.ethDstMask = ethDstMask;
this.ethDstMaskSet = true;
return this;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFMatchV2.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public short getVlanPcp() {
return vlanPcp;
}
@Override
public OFMatchV2.Builder setVlanPcp(short vlanPcp) {
this.vlanPcp = vlanPcp;
this.vlanPcpSet = true;
return this;
}
@Override
public int getEthType() {
return ethType;
}
@Override
public OFMatchV2.Builder setEthType(int ethType) {
this.ethType = ethType;
this.ethTypeSet = true;
return this;
}
@Override
public short getIpDscp() {
return ipDscp;
}
@Override
public OFMatchV2.Builder setIpDscp(short ipDscp) {
this.ipDscp = ipDscp;
this.ipDscpSet = true;
return this;
}
@Override
public short getIpProto() {
return ipProto;
}
@Override
public OFMatchV2.Builder setIpProto(short ipProto) {
this.ipProto = ipProto;
this.ipProtoSet = true;
return this;
}
@Override
public IPv4Address getIpv4Src() {
return ipv4Src;
}
@Override
public OFMatchV2.Builder setIpv4Src(IPv4Address ipv4Src) {
this.ipv4Src = ipv4Src;
this.ipv4SrcSet = true;
return this;
}
@Override
public IPv4Address getIpv4SrcMask() {
return ipv4SrcMask;
}
@Override
public OFMatchV2.Builder setIpv4SrcMask(IPv4Address ipv4SrcMask) {
this.ipv4SrcMask = ipv4SrcMask;
this.ipv4SrcMaskSet = true;
return this;
}
@Override
public IPv4Address getIpv4Dst() {
return ipv4Dst;
}
@Override
public OFMatchV2.Builder setIpv4Dst(IPv4Address ipv4Dst) {
this.ipv4Dst = ipv4Dst;
this.ipv4DstSet = true;
return this;
}
@Override
public IPv4Address getIpv4DstMask() {
return ipv4DstMask;
}
@Override
public OFMatchV2.Builder setIpv4DstMask(IPv4Address ipv4DstMask) {
this.ipv4DstMask = ipv4DstMask;
this.ipv4DstMaskSet = true;
return this;
}
@Override
public int getTcpSrc() {
return tcpSrc;
}
@Override
public OFMatchV2.Builder setTcpSrc(int tcpSrc) {
this.tcpSrc = tcpSrc;
this.tcpSrcSet = true;
return this;
}
@Override
public int getTcpDst() {
return tcpDst;
}
@Override
public OFMatchV2.Builder setTcpDst(int tcpDst) {
this.tcpDst = tcpDst;
this.tcpDstSet = true;
return this;
}
@Override
public long getMplsLabel() {
return mplsLabel;
}
@Override
public OFMatchV2.Builder setMplsLabel(long mplsLabel) {
this.mplsLabel = mplsLabel;
this.mplsLabelSet = true;
return this;
}
@Override
public short getMplsTc() {
return mplsTc;
}
@Override
public OFMatchV2.Builder setMplsTc(short mplsTc) {
this.mplsTc = mplsTc;
this.mplsTcSet = true;
return this;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFMatchV2.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFMatchV2.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFMatchV2 build() {
OFPort inPort = this.inPortSet ? this.inPort : parentMessage.inPort; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 229 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 229 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFBsnLacpConvergenceNotif build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
short convergenceStatus = this.convergenceStatusSet ? this.convergenceStatus : parentMessage.convergenceStatus;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : parentMessage.actorSysPriority;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : parentMessage.actorSysMac;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : parentMessage.actorPortPriority;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : parentMessage.actorPortNum;
int actorKey = this.actorKeySet ? this.actorKey : parentMessage.actorKey;
int partnerSysPriority = this.partnerSysPrioritySet ? this.partnerSysPriority : parentMessage.partnerSysPriority;
MacAddress partnerSysMac = this.partnerSysMacSet ? this.partnerSysMac : parentMessage.partnerSysMac;
if(partnerSysMac == null)
throw new NullPointerException("Property partnerSysMac must not be null");
int partnerPortPriority = this.partnerPortPrioritySet ? this.partnerPortPriority : parentMessage.partnerPortPriority;
int partnerPortNum = this.partnerPortNumSet ? this.partnerPortNum : parentMessage.partnerPortNum;
int partnerKey = this.partnerKeySet ? this.partnerKey : parentMessage.partnerKey;
//
return new OFBsnLacpConvergenceNotifVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 900 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 900 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 900 |
OFPortStatsEntryVer10 other = (OFPortStatsEntryVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (rxPackets == null) {
if (other.rxPackets != null)
return false;
} else if (!rxPackets.equals(other.rxPackets))
return false;
if (txPackets == null) {
if (other.txPackets != null)
return false;
} else if (!txPackets.equals(other.txPackets))
return false;
if (rxBytes == null) {
if (other.rxBytes != null)
return false;
} else if (!rxBytes.equals(other.rxBytes))
return false;
if (txBytes == null) {
if (other.txBytes != null)
return false;
} else if (!txBytes.equals(other.txBytes))
return false;
if (rxDropped == null) {
if (other.rxDropped != null)
return false;
} else if (!rxDropped.equals(other.rxDropped))
return false;
if (txDropped == null) {
if (other.txDropped != null)
return false;
} else if (!txDropped.equals(other.txDropped))
return false;
if (rxErrors == null) {
if (other.rxErrors != null)
return false;
} else if (!rxErrors.equals(other.rxErrors))
return false;
if (txErrors == null) {
if (other.txErrors != null)
return false;
} else if (!txErrors.equals(other.txErrors))
return false;
if (rxFrameErr == null) {
if (other.rxFrameErr != null)
return false;
} else if (!rxFrameErr.equals(other.rxFrameErr))
return false;
if (rxOverErr == null) {
if (other.rxOverErr != null)
return false;
} else if (!rxOverErr.equals(other.rxOverErr))
return false;
if (rxCrcErr == null) {
if (other.rxCrcErr != null)
return false;
} else if (!rxCrcErr.equals(other.rxCrcErr))
return false;
if (collisions == null) {
if (other.collisions != null)
return false;
} else if (!collisions.equals(other.collisions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((rxPackets == null) ? 0 : rxPackets.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((rxBytes == null) ? 0 : rxBytes.hashCode());
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((rxDropped == null) ? 0 : rxDropped.hashCode());
result = prime * result + ((txDropped == null) ? 0 : txDropped.hashCode());
result = prime * result + ((rxErrors == null) ? 0 : rxErrors.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode());
result = prime * result + ((rxFrameErr == null) ? 0 : rxFrameErr.hashCode());
result = prime * result + ((rxOverErr == null) ? 0 : rxOverErr.hashCode());
result = prime * result + ((rxCrcErr == null) ? 0 : rxCrcErr.hashCode());
result = prime * result + ((collisions == null) ? 0 : collisions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketInVer10.java | 387 |
| net/onrc/openvirtex/messages/ver10/OVXPacketOutVer10.java | 254 |
}
/**
* Initializes this Match structure with the corresponding data from the
* specified packet. Must specify the input port, to ensure that
* this.in_port is set correctly. Specify OFPort.NONE or OFPort.ANY if input
* port not applicable or available
*
* @param packetData
* The packet's data
* @param inputPort
* the port the packet arrived on
*/
public Match loadFromPacket(final byte[] packetData, final short inputPort) {
short scratch;
int transportOffset = 34;
final ByteBuffer packetDataBB = ByteBuffer.wrap(packetData);
final int limit = packetDataBB.limit();
Set<OFFlowWildcards> wildcards=new HashSet<OFFlowWildcards>();
if (OFPort.ofShort(inputPort) == OFPort.ALL) {
wildcards.add(OFFlowWildcards.IN_PORT);
}
assert limit >= 14;
// dl dst
byte[] ethDst = new byte[6];
packetDataBB.get(ethDst);
// dl src
byte[] ethSrc = new byte[6];
packetDataBB.get(ethSrc);
// dl type
short ethType=packetDataBB.getShort();
short vlanVid=0;
byte vlanPcp=0;
if (ethType != (short) 0x8100) { // need cast to avoid
// signed
// bug
vlanVid=(short) 0xffff;
vlanPcp=(byte) 0;
} else {
// has vlan tag
scratch = packetDataBB.getShort();
vlanVid=(short) (0xfff & scratch);
vlanPcp=(byte) ((0xe000 & scratch) >> 13);
ethType = packetDataBB.getShort();
}
byte ipDscp=0;
byte ipProtocol=0;
int ipv4Src=0;
int ipv4Dst=0;
switch (ethType) {
case 0x0800:
// ipv4
// check packet length
scratch = packetDataBB.get();
scratch = (short) (0xf & scratch);
transportOffset = packetDataBB.position() - 1 + scratch * 4;
// nw tos (dscp)
scratch = packetDataBB.get();
ipDscp=(byte) ((0xfc & scratch) >> 2);
// nw protocol
packetDataBB.position(packetDataBB.position() + 7);
ipProtocol = packetDataBB.get();
// nw src
packetDataBB.position(packetDataBB.position() + 2);
ipv4Src = packetDataBB.getInt();
// nw dst
ipv4Dst = packetDataBB.getInt();
packetDataBB.position(transportOffset);
break;
case 0x0806:
// arp
final int arpPos = packetDataBB.position();
// opcode
scratch = packetDataBB.getShort(arpPos + 6);
ipDscp=(byte) (0xff & scratch);
scratch = packetDataBB.getShort(arpPos + 2);
// if ipv4 and addr len is 4
if (scratch == 0x800 && packetDataBB.get(arpPos + 5) == 4) {
// nw src
ipv4Src = packetDataBB.getInt(arpPos + 14);
// nw dst
ipv4Dst = packetDataBB.getInt(arpPos + 24);
} else {
ipv4Src=0;
ipv4Dst=0;
}
break;
default:
// Not ARP or IP. Wildcard NW_DST and NW_SRC
wildcards.add(OFFlowWildcards.NW_DST_ALL);
wildcards.add(OFFlowWildcards.NW_SRC_ALL);
wildcards.add(OFFlowWildcards.NW_PROTO);
wildcards.add(OFFlowWildcards.NW_TOS);
ipDscp=(byte)0;
ipProtocol=(byte)0;
ipv4Src=0;
ipv4Dst=0;
break;
}
short tcpSrc=0;
short tcpDst=0;
switch (ipProtocol) {
case 0x01:
// icmp
// type
tcpSrc = U8.f(packetDataBB.get());
// code
tcpDst = U8.f(packetDataBB.get());
break;
case 0x06:
// tcp
// tcp src
tcpSrc = packetDataBB.getShort();
// tcp dest
tcpDst = packetDataBB.getShort();
break;
case 0x11:
// udp
// udp src
tcpSrc = packetDataBB.getShort();
// udp dest
tcpDst = packetDataBB.getShort();
break;
default:
// Unknown network proto.
wildcards.add(OFFlowWildcards.TP_DST);
wildcards.add(OFFlowWildcards.TP_SRC);
tcpDst = (short)0;
tcpSrc = (short)0;
break;
}
Match match_from_packet=OVXFactoryInst.myFactory.buildMatchV1()
.setWildcards(OFFlowWildcardsSerializerVer10.toWireValue(wildcards))
.setInPort(OFPort.ofShort(inputPort))
.setEthDst(MacAddress.of(ethDst))
.setEthSrc(MacAddress.of(ethSrc))
.setEthType(EthType.of(ethType))
.setVlanVid(OFVlanVidMatch.ofRawVid(vlanVid))
.setVlanPcp(VlanPcp.of(vlanPcp))
.setIpDscp(IpDscp.of(ipDscp))
.setIpProto(IpProtocol.of(ipProtocol))
.setIpv4Src(IPv4Address.of(ipv4Src))
.setIpv4Dst(IPv4Address.of(ipv4Dst))
.setTcpSrc(TransportPort.of(tcpSrc))
.setTcpDst(TransportPort.of(tcpDst))
.build();
return match_from_packet;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortFeaturesSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortFeaturesSerializerVer14.java | 34 |
public class OFPortFeaturesSerializerVer13 {
public final static int PF_10MB_HD_VAL = 0x1;
public final static int PF_10MB_FD_VAL = 0x2;
public final static int PF_100MB_HD_VAL = 0x4;
public final static int PF_100MB_FD_VAL = 0x8;
public final static int PF_1GB_HD_VAL = 0x10;
public final static int PF_1GB_FD_VAL = 0x20;
public final static int PF_10GB_FD_VAL = 0x40;
public final static int PF_COPPER_VAL = 0x800;
public final static int PF_FIBER_VAL = 0x1000;
public final static int PF_AUTONEG_VAL = 0x2000;
public final static int PF_PAUSE_VAL = 0x4000;
public final static int PF_PAUSE_ASYM_VAL = 0x8000;
public final static int PF_40GB_FD_VAL = 0x80;
public final static int PF_100GB_FD_VAL = 0x100;
public final static int PF_1TB_FD_VAL = 0x200;
public final static int PF_OTHER_VAL = 0x400;
public final static int PF_BSN_BREAKOUT_CAPABLE_VAL = (int) 0x80000000;
public static Set<OFPortFeatures> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortFeatures> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortFeatures> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortFeatures> ofWireValue(int val) {
EnumSet<OFPortFeatures> set = EnumSet.noneOf(OFPortFeatures.class);
if((val & PF_10MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_HD);
if((val & PF_10MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_FD);
if((val & PF_100MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_HD);
if((val & PF_100MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_FD);
if((val & PF_1GB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_HD);
if((val & PF_1GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_FD);
if((val & PF_10GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10GB_FD);
if((val & PF_COPPER_VAL) != 0)
set.add(OFPortFeatures.PF_COPPER);
if((val & PF_FIBER_VAL) != 0)
set.add(OFPortFeatures.PF_FIBER);
if((val & PF_AUTONEG_VAL) != 0)
set.add(OFPortFeatures.PF_AUTONEG);
if((val & PF_PAUSE_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE);
if((val & PF_PAUSE_ASYM_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE_ASYM);
if((val & PF_40GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_40GB_FD);
if((val & PF_100GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100GB_FD);
if((val & PF_1TB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1TB_FD);
if((val & PF_OTHER_VAL) != 0)
set.add(OFPortFeatures.PF_OTHER);
if((val & PF_BSN_BREAKOUT_CAPABLE_VAL) != 0)
set.add(OFPortFeatures.PF_BSN_BREAKOUT_CAPABLE);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortFeatures> set) {
int wireValue = 0;
for(OFPortFeatures e: set) {
switch(e) {
case PF_10MB_HD:
wireValue |= PF_10MB_HD_VAL;
break;
case PF_10MB_FD:
wireValue |= PF_10MB_FD_VAL;
break;
case PF_100MB_HD:
wireValue |= PF_100MB_HD_VAL;
break;
case PF_100MB_FD:
wireValue |= PF_100MB_FD_VAL;
break;
case PF_1GB_HD:
wireValue |= PF_1GB_HD_VAL;
break;
case PF_1GB_FD:
wireValue |= PF_1GB_FD_VAL;
break;
case PF_10GB_FD:
wireValue |= PF_10GB_FD_VAL;
break;
case PF_COPPER:
wireValue |= PF_COPPER_VAL;
break;
case PF_FIBER:
wireValue |= PF_FIBER_VAL;
break;
case PF_AUTONEG:
wireValue |= PF_AUTONEG_VAL;
break;
case PF_PAUSE:
wireValue |= PF_PAUSE_VAL;
break;
case PF_PAUSE_ASYM:
wireValue |= PF_PAUSE_ASYM_VAL;
break;
case PF_40GB_FD:
wireValue |= PF_40GB_FD_VAL;
break;
case PF_100GB_FD:
wireValue |= PF_100GB_FD_VAL;
break;
case PF_1TB_FD:
wireValue |= PF_1TB_FD_VAL;
break;
case PF_OTHER:
wireValue |= PF_OTHER_VAL;
break;
case PF_BSN_BREAKOUT_CAPABLE:
wireValue |= PF_BSN_BREAKOUT_CAPABLE_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFPortFeatures in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 465 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 465 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
//
@Override
public OFBsnLacpConvergenceNotif build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
short convergenceStatus = this.convergenceStatusSet ? this.convergenceStatus : DEFAULT_CONVERGENCE_STATUS;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : DEFAULT_ACTOR_SYS_PRIORITY;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : DEFAULT_ACTOR_SYS_MAC;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : DEFAULT_ACTOR_PORT_PRIORITY;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : DEFAULT_ACTOR_PORT_NUM;
int actorKey = this.actorKeySet ? this.actorKey : DEFAULT_ACTOR_KEY;
int partnerSysPriority = this.partnerSysPrioritySet ? this.partnerSysPriority : DEFAULT_PARTNER_SYS_PRIORITY;
MacAddress partnerSysMac = this.partnerSysMacSet ? this.partnerSysMac : DEFAULT_PARTNER_SYS_MAC;
if(partnerSysMac == null)
throw new NullPointerException("Property partnerSysMac must not be null");
int partnerPortPriority = this.partnerPortPrioritySet ? this.partnerPortPriority : DEFAULT_PARTNER_PORT_PRIORITY;
int partnerPortNum = this.partnerPortNumSet ? this.partnerPortNum : DEFAULT_PARTNER_PORT_NUM;
int partnerKey = this.partnerKeySet ? this.partnerKey : DEFAULT_PARTNER_KEY;
return new OFBsnLacpConvergenceNotifVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 215 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 215 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 215 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int priority = this.prioritySet ? this.priority : parentMessage.priority;
short reason = this.reasonSet ? this.reason : parentMessage.reason;
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
//
return new OFFlowRemovedVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortFeaturesSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortFeaturesSerializerVer12.java | 34 |
public class OFPortFeaturesSerializerVer11 {
public final static int PF_10MB_HD_VAL = 0x1;
public final static int PF_10MB_FD_VAL = 0x2;
public final static int PF_100MB_HD_VAL = 0x4;
public final static int PF_100MB_FD_VAL = 0x8;
public final static int PF_1GB_HD_VAL = 0x10;
public final static int PF_1GB_FD_VAL = 0x20;
public final static int PF_10GB_FD_VAL = 0x40;
public final static int PF_COPPER_VAL = 0x800;
public final static int PF_FIBER_VAL = 0x1000;
public final static int PF_AUTONEG_VAL = 0x2000;
public final static int PF_PAUSE_VAL = 0x4000;
public final static int PF_PAUSE_ASYM_VAL = 0x8000;
public final static int PF_40GB_FD_VAL = 0x80;
public final static int PF_100GB_FD_VAL = 0x100;
public final static int PF_1TB_FD_VAL = 0x200;
public final static int PF_OTHER_VAL = 0x400;
public static Set<OFPortFeatures> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortFeatures> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortFeatures> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortFeatures> ofWireValue(int val) {
EnumSet<OFPortFeatures> set = EnumSet.noneOf(OFPortFeatures.class);
if((val & PF_10MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_HD);
if((val & PF_10MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_FD);
if((val & PF_100MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_HD);
if((val & PF_100MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_FD);
if((val & PF_1GB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_HD);
if((val & PF_1GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_FD);
if((val & PF_10GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10GB_FD);
if((val & PF_COPPER_VAL) != 0)
set.add(OFPortFeatures.PF_COPPER);
if((val & PF_FIBER_VAL) != 0)
set.add(OFPortFeatures.PF_FIBER);
if((val & PF_AUTONEG_VAL) != 0)
set.add(OFPortFeatures.PF_AUTONEG);
if((val & PF_PAUSE_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE);
if((val & PF_PAUSE_ASYM_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE_ASYM);
if((val & PF_40GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_40GB_FD);
if((val & PF_100GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100GB_FD);
if((val & PF_1TB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1TB_FD);
if((val & PF_OTHER_VAL) != 0)
set.add(OFPortFeatures.PF_OTHER);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortFeatures> set) {
int wireValue = 0;
for(OFPortFeatures e: set) {
switch(e) {
case PF_10MB_HD:
wireValue |= PF_10MB_HD_VAL;
break;
case PF_10MB_FD:
wireValue |= PF_10MB_FD_VAL;
break;
case PF_100MB_HD:
wireValue |= PF_100MB_HD_VAL;
break;
case PF_100MB_FD:
wireValue |= PF_100MB_FD_VAL;
break;
case PF_1GB_HD:
wireValue |= PF_1GB_HD_VAL;
break;
case PF_1GB_FD:
wireValue |= PF_1GB_FD_VAL;
break;
case PF_10GB_FD:
wireValue |= PF_10GB_FD_VAL;
break;
case PF_COPPER:
wireValue |= PF_COPPER_VAL;
break;
case PF_FIBER:
wireValue |= PF_FIBER_VAL;
break;
case PF_AUTONEG:
wireValue |= PF_AUTONEG_VAL;
break;
case PF_PAUSE:
wireValue |= PF_PAUSE_VAL;
break;
case PF_PAUSE_ASYM:
wireValue |= PF_PAUSE_ASYM_VAL;
break;
case PF_40GB_FD:
wireValue |= PF_40GB_FD_VAL;
break;
case PF_100GB_FD:
wireValue |= PF_100GB_FD_VAL;
break;
case PF_1TB_FD:
wireValue |= PF_1TB_FD_VAL;
break;
case PF_OTHER:
wireValue |= PF_OTHER_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFPortFeatures in version 1.1: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 430 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 430 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 430 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
short reason = this.reasonSet ? this.reason : DEFAULT_REASON;
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
return new OFFlowRemovedVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 209 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 209 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 209 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long types = this.typesSet ? this.types : parentMessage.types;
long capabilities = this.capabilitiesSet ? this.capabilities : parentMessage.capabilities;
long maxGroupsAll = this.maxGroupsAllSet ? this.maxGroupsAll : parentMessage.maxGroupsAll;
long maxGroupsSelect = this.maxGroupsSelectSet ? this.maxGroupsSelect : parentMessage.maxGroupsSelect;
long maxGroupsIndirect = this.maxGroupsIndirectSet ? this.maxGroupsIndirect : parentMessage.maxGroupsIndirect;
long maxGroupsFf = this.maxGroupsFfSet ? this.maxGroupsFf : parentMessage.maxGroupsFf;
long actionsAll = this.actionsAllSet ? this.actionsAll : parentMessage.actionsAll;
long actionsSelect = this.actionsSelectSet ? this.actionsSelect : parentMessage.actionsSelect;
long actionsIndirect = this.actionsIndirectSet ? this.actionsIndirect : parentMessage.actionsIndirect;
long actionsFf = this.actionsFfSet ? this.actionsFf : parentMessage.actionsFf;
//
return new OFGroupFeaturesStatsReplyVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescPropOpticalVer13.java | 280 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescPropOpticalVer13.java | 573 |
@Override
public int getType() {
return 0x2;
}
@Override
public Set<OFCalientOpticalPortAdminState> getInAdminStatus() {
return inAdminStatus;
}
@Override
public OFCalientPortDescPropOptical.Builder setInAdminStatus(Set<OFCalientOpticalPortAdminState> inAdminStatus) {
this.inAdminStatus = inAdminStatus;
this.inAdminStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperState> getInOperStatus() {
return inOperStatus;
}
@Override
public OFCalientPortDescPropOptical.Builder setInOperStatus(Set<OFCalientOpticalPortOperState> inOperStatus) {
this.inOperStatus = inOperStatus;
this.inOperStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperCapability> getInOperCapability() {
return inOperCapability;
}
@Override
public OFCalientPortDescPropOptical.Builder setInOperCapability(Set<OFCalientOpticalPortOperCapability> inOperCapability) {
this.inOperCapability = inOperCapability;
this.inOperCapabilitySet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortAdminState> getOutAdminStatus() {
return outAdminStatus;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutAdminStatus(Set<OFCalientOpticalPortAdminState> outAdminStatus) {
this.outAdminStatus = outAdminStatus;
this.outAdminStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperState> getOutOperStatus() {
return outOperStatus;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutOperStatus(Set<OFCalientOpticalPortOperState> outOperStatus) {
this.outOperStatus = outOperStatus;
this.outOperStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperCapability> getOutOperCapability() {
return outOperCapability;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutOperCapability(Set<OFCalientOpticalPortOperCapability> outOperCapability) {
this.outOperCapability = outOperCapability;
this.outOperCapabilitySet = true;
return this;
}
@Override
public String getInportPower() {
return inportPower;
}
@Override
public OFCalientPortDescPropOptical.Builder setInportPower(String inportPower) {
this.inportPower = inportPower;
this.inportPowerSet = true;
return this;
}
@Override
public String getOutportPower() {
return outportPower;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutportPower(String outportPower) {
this.outportPower = outportPower;
this.outportPowerSet = true;
return this;
}
@Override
public U64 getInPeerNode() {
return inPeerNode;
}
@Override
public OFCalientPortDescPropOptical.Builder setInPeerNode(U64 inPeerNode) {
this.inPeerNode = inPeerNode;
this.inPeerNodeSet = true;
return this;
}
@Override
public U64 getOutPeerNode() {
return outPeerNode;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutPeerNode(U64 outPeerNode) {
this.outPeerNode = outPeerNode;
this.outPeerNodeSet = true;
return this;
}
@Override
public int getInPeerPort() {
return inPeerPort;
}
@Override
public OFCalientPortDescPropOptical.Builder setInPeerPort(int inPeerPort) {
this.inPeerPort = inPeerPort;
this.inPeerPortSet = true;
return this;
}
@Override
public int getOutPeerPort() {
return outPeerPort;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutPeerPort(int outPeerPort) {
this.outPeerPort = outPeerPort;
this.outPeerPortSet = true;
return this;
}
@Override
public String getInCircuitId() {
return inCircuitId;
}
@Override
public OFCalientPortDescPropOptical.Builder setInCircuitId(String inCircuitId) {
this.inCircuitId = inCircuitId;
this.inCircuitIdSet = true;
return this;
}
@Override
public String getOutCircuitId() {
return outCircuitId;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutCircuitId(String outCircuitId) {
this.outCircuitId = outCircuitId;
this.outCircuitIdSet = true;
return this;
}
@Override
public String getInAlias() {
return inAlias;
}
@Override
public OFCalientPortDescPropOptical.Builder setInAlias(String inAlias) {
this.inAlias = inAlias;
this.inAliasSet = true;
return this;
}
@Override
public String getOutAlias() {
return outAlias;
}
@Override
public OFCalientPortDescPropOptical.Builder setOutAlias(String outAlias) {
this.outAlias = outAlias;
this.outAliasSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFCalientPortDescPropOptical build() {
Set<OFCalientOpticalPortAdminState> inAdminStatus = this.inAdminStatusSet ? this.inAdminStatus : parentMessage.inAdminStatus; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 445 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 230 |
}
/**
* Initializes this Match structure with the corresponding data from the
* specified packet. Must specify the input port, to ensure that
* this.in_port is set correctly. Specify OFPort.NONE or OFPort.ANY if input
* port not applicable or available
*
* @param packetData
* The packet's data
* @param inputPort
* the port the packet arrived on
*/
public Match loadFromPacket(final byte[] packetData, final short inputPort) {
short scratch;
int transportOffset = 34;
final ByteBuffer packetDataBB = ByteBuffer.wrap(packetData);
final int limit = packetDataBB.limit();
HashMap<MatchField, OFOxm<?>> MatchMap = new HashMap<>();
Set<OFFlowWildcards> wildcards=new HashSet<OFFlowWildcards>();
if (OFPort.ofShort(inputPort) == OFPort.ALL) {
wildcards.add(OFFlowWildcards.IN_PORT);
}
System.out.println("Pravein : Printing packet Bytes");
for (byte packetByte: packetData) {
System.out.print (String.format("%02X ", packetByte));
}
System.out.println();
assert limit >= 14;
// dl dst
byte[] ethDst = new byte[6];
packetDataBB.get(ethDst);
// dl src
byte[] ethSrc = new byte[6];
packetDataBB.get(ethSrc);
// dl type
short ethType=packetDataBB.getShort();
short vlanVid=0;
byte vlanPcp=0;
if (ethType != (short) 0x8100) {
/* Untagged value in OF 1.3 */
vlanVid= 0x0000;
vlanPcp=(byte) 0;
} else {
// has vlan tag
scratch = packetDataBB.getShort();
vlanVid=(short) (0xfff & scratch);
vlanPcp=(byte) ((0xe000 & scratch) >> 13);
ethType = packetDataBB.getShort();
}
byte ipDscp=0;
byte ipProtocol=0;
int ipv4Src=0;
int ipv4Dst=0;
switch (ethType) {
case 0x0800:
// ipv4
// check packet length
System.out.println("Got an IP Packet");
scratch = packetDataBB.get();
scratch = (short) (0xf & scratch);
transportOffset = packetDataBB.position() - 1 + scratch * 4;
// nw tos (dscp)
scratch = packetDataBB.get();
ipDscp=(byte) ((0xfc & scratch) >> 2);
// nw protocol
packetDataBB.position(packetDataBB.position() + 7);
ipProtocol = packetDataBB.get();
// nw src
packetDataBB.position(packetDataBB.position() + 2);
ipv4Src = packetDataBB.getInt();
// nw dst
ipv4Dst = packetDataBB.getInt();
packetDataBB.position(transportOffset);
break;
case 0x0806:
// arp
System.out.println("Got an ARP Packet");
final int arpPos = packetDataBB.position();
// opcode
scratch = packetDataBB.getShort(arpPos + 6);
ipDscp=(byte) (0xff & scratch);
scratch = packetDataBB.getShort(arpPos + 2);
// if ipv4 and addr len is 4
if (scratch == 0x800 && packetDataBB.get(arpPos + 5) == 4) {
// nw src
ipv4Src = packetDataBB.getInt(arpPos + 14);
// nw dst
ipv4Dst = packetDataBB.getInt(arpPos + 24);
} else {
ipv4Src=0;
ipv4Dst=0;
}
break;
default:
// Not ARP or IP. Wildcard NW_DST and NW_SRC
wildcards.add(OFFlowWildcards.NW_DST_ALL);
wildcards.add(OFFlowWildcards.NW_SRC_ALL);
wildcards.add(OFFlowWildcards.NW_PROTO);
wildcards.add(OFFlowWildcards.NW_TOS);
ipDscp=(byte)0;
ipProtocol=(byte)0;
ipv4Src=0;
ipv4Dst=0;
break;
}
short tcpSrc=0;
short tcpDst=0;
switch (ipProtocol) {
case 0x01:
// icmp
// type
tcpSrc = U8.f(packetDataBB.get());
// code
tcpDst = U8.f(packetDataBB.get());
break;
case 0x06:
// tcp
// tcp src
tcpSrc = packetDataBB.getShort();
// tcp dest
tcpDst = packetDataBB.getShort();
break;
case 0x11:
// udp
// udp src
tcpSrc = packetDataBB.getShort();
// udp dest
tcpDst = packetDataBB.getShort();
break;
default:
// Unknown network proto.
wildcards.add(OFFlowWildcards.TP_DST);
wildcards.add(OFFlowWildcards.TP_SRC);
tcpDst = (short)0;
tcpSrc = (short)0;
break;
}
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 548 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFCalientFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFCalientFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFCalientFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFCalientFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFCalientFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFCalientFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFCalientFlowStatsEntry.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFCalientFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public Set<OFCalientCflowAdminState> getAdminStatus() {
return adminStatus;
}
@Override
public OFCalientFlowStatsEntry.Builder setAdminStatus(Set<OFCalientCflowAdminState> adminStatus) {
this.adminStatus = adminStatus;
this.adminStatusSet = true;
return this;
}
@Override
public Set<OFCalientCflowOperationalState> getOperStatus() {
return operStatus;
}
@Override
public OFCalientFlowStatsEntry.Builder setOperStatus(Set<OFCalientCflowOperationalState> operStatus) {
this.operStatus = operStatus;
this.operStatusSet = true;
return this;
}
@Override
public Set<OFCalientCflowCapability> getOperCapability() {
return operCapability;
}
@Override
public OFCalientFlowStatsEntry.Builder setOperCapability(Set<OFCalientCflowCapability> operCapability) {
this.operCapability = operCapability;
this.operCapabilitySet = true;
return this;
}
@Override
public Set<OFCalientOcsAlarm> getAlarm() {
return alarm;
}
@Override
public OFCalientFlowStatsEntry.Builder setAlarm(Set<OFCalientOcsAlarm> alarm) {
this.alarm = alarm;
this.alarmSet = true;
return this;
}
@Override
public String getPortPower() {
return portPower;
}
@Override
public OFCalientFlowStatsEntry.Builder setPortPower(String portPower) {
this.portPower = portPower;
this.portPowerSet = true;
return this;
}
@Override
public String getConnectedPortPower() {
return connectedPortPower;
}
@Override
public OFCalientFlowStatsEntry.Builder setConnectedPortPower(String connectedPortPower) {
this.connectedPortPower = connectedPortPower;
this.connectedPortPowerSet = true;
return this;
}
@Override
public String getCflowName() {
return cflowName;
}
@Override
public OFCalientFlowStatsEntry.Builder setCflowName(String cflowName) {
this.cflowName = cflowName;
this.cflowNameSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFCalientFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFCalientFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 421 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 421 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 421 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
//
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long types = this.typesSet ? this.types : DEFAULT_TYPES;
long capabilities = this.capabilitiesSet ? this.capabilities : DEFAULT_CAPABILITIES;
long maxGroupsAll = this.maxGroupsAllSet ? this.maxGroupsAll : DEFAULT_MAX_GROUPS_ALL;
long maxGroupsSelect = this.maxGroupsSelectSet ? this.maxGroupsSelect : DEFAULT_MAX_GROUPS_SELECT;
long maxGroupsIndirect = this.maxGroupsIndirectSet ? this.maxGroupsIndirect : DEFAULT_MAX_GROUPS_INDIRECT;
long maxGroupsFf = this.maxGroupsFfSet ? this.maxGroupsFf : DEFAULT_MAX_GROUPS_FF;
long actionsAll = this.actionsAllSet ? this.actionsAll : DEFAULT_ACTIONS_ALL;
long actionsSelect = this.actionsSelectSet ? this.actionsSelect : DEFAULT_ACTIONS_SELECT;
long actionsIndirect = this.actionsIndirectSet ? this.actionsIndirect : DEFAULT_ACTIONS_INDIRECT;
long actionsFf = this.actionsFfSet ? this.actionsFf : DEFAULT_ACTIONS_FF;
return new OFGroupFeaturesStatsReplyVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 375 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property name not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setName(String name) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property name not supported in version 1.3");
}
@Override
public OFMatchBmap getMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.3");
}
@Override
public int getWildcards()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property wildcards not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property wildcards not supported in version 1.3");
}
@Override
public long getWriteActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeActions not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeActions not supported in version 1.3");
}
@Override
public long getApplyActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applyActions not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applyActions not supported in version 1.3");
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setWriteSetfields(U64 writeSetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.3");
}
@Override
public U64 getApplySetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setApplySetfields(U64 applySetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.3");
}
@Override
public U64 getMetadataMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setMetadataMatch(U64 metadataMatch) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.3");
}
@Override
public U64 getMetadataWrite()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setMetadataWrite(U64 metadataWrite) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.3");
}
@Override
public long getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setInstructions(long instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.3");
}
@Override
public long getConfig()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property config not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setConfig(long config) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property config not supported in version 1.3");
}
@Override
public long getMaxEntries()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxEntries not supported in version 1.3");
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxEntries not supported in version 1.3");
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFTableStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 375 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property name not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setName(String name) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property name not supported in version 1.4");
}
@Override
public OFMatchBmap getMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.4");
}
@Override
public int getWildcards()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property wildcards not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property wildcards not supported in version 1.4");
}
@Override
public long getWriteActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeActions not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeActions not supported in version 1.4");
}
@Override
public long getApplyActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applyActions not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applyActions not supported in version 1.4");
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setWriteSetfields(U64 writeSetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.4");
}
@Override
public U64 getApplySetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setApplySetfields(U64 applySetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.4");
}
@Override
public U64 getMetadataMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setMetadataMatch(U64 metadataMatch) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.4");
}
@Override
public U64 getMetadataWrite()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setMetadataWrite(U64 metadataWrite) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.4");
}
@Override
public long getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setInstructions(long instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.4");
}
@Override
public long getConfig()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property config not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setConfig(long config) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property config not supported in version 1.4");
}
@Override
public long getMaxEntries()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxEntries not supported in version 1.4");
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxEntries not supported in version 1.4");
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFTableStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 236 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 473 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFFlowAdd.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowAdd.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 235 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 472 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFFlowDeleteStrict.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowDeleteStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 235 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 472 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFFlowDelete.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowDelete.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 235 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 472 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFFlowModifyStrict.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowModifyStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 235 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 472 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFFlowModify.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowModify.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 199 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 413 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.0");
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeActions not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeActions not supported in version 1.0");
}
@Override
public long getApplyActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applyActions not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applyActions not supported in version 1.0");
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setWriteSetfields(U64 writeSetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.0");
}
@Override
public U64 getApplySetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setApplySetfields(U64 applySetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.0");
}
@Override
public U64 getMetadataMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setMetadataMatch(U64 metadataMatch) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.0");
}
@Override
public U64 getMetadataWrite()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setMetadataWrite(U64 metadataWrite) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.0");
}
@Override
public long getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setInstructions(long instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public long getConfig()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property config not supported in version 1.0");
}
@Override
public OFTableStatsEntry.Builder setConfig(long config) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property config not supported in version 1.0");
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFTableStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 244 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 500 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property rxFrameErr not supported in version 1.4");
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property rxFrameErr not supported in version 1.4");
}
@Override
public U64 getRxOverErr()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property rxOverErr not supported in version 1.4");
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property rxOverErr not supported in version 1.4");
}
@Override
public U64 getRxCrcErr()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property rxCrcErr not supported in version 1.4");
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property rxCrcErr not supported in version 1.4");
}
@Override
public U64 getCollisions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property collisions not supported in version 1.4");
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property collisions not supported in version 1.4");
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFPortStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFPortStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFPortStatsProp> getProperties() {
return properties;
}
@Override
public OFPortStatsEntry.Builder setProperties(List<OFPortStatsProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 257 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 525 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0");
}
@Override
public OFPortStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.0");
}
@Override
public OFPortStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.0");
}
@Override
public List<OFPortStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFPortStatsEntry.Builder setProperties(List<OFPortStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 252 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFlowAdd.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowAdd.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 252 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFlowDeleteStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowDeleteStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 252 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFlowDelete.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowDelete.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 252 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFlowModifyStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowModifyStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 252 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFlowModify.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowModify.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 257 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 525 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1");
}
@Override
public OFPortStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.1");
}
@Override
public OFPortStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.1");
}
@Override
public List<OFPortStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFPortStatsEntry.Builder setProperties(List<OFPortStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 252 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFlowAdd.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowAdd.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 252 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFlowDeleteStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowDeleteStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 252 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFlowDelete.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowDelete.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 252 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFlowModifyStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowModifyStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 252 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 513 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFlowModify.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowModify.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 257 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 525 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.2");
}
@Override
public OFPortStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.2");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.2");
}
@Override
public OFPortStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.2");
}
@Override
public List<OFPortStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFPortStatsEntry.Builder setProperties(List<OFPortStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 296 |
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 439 |
if(oxmList == null)
throw new NullPointerException("Property oxmList must not be null");
//
return new OFMatchV3Ver12(
oxmList
);
}
private OFOxmList.Builder oxmListBuilder;
private void initBuilder() {
if (oxmListBuilder != null)
return;
oxmListBuilder = new OFOxmList.Builder();
}
private void updateOxmList() {
this.oxmList = this.oxmListBuilder.build();
this.oxmListSet = true;
}
private <F extends OFValueType<F>> OFOxm<F> getOxm(MatchField<F> field) {
return this.oxmListSet ? this.oxmList.get(field) : null;
}
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null)
return null;
return value.getValue();
}
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null || !value.isMasked())
return null;
// TODO: If changing OXMs to extend Masked, then use it here
return Masked.of(value.getValue(), value.getMask());
}
@Override
public boolean supports(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean supportsMasked(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean isExact(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && !value.isMasked());
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value == null);
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && value.isMasked());
}
@Override
public <F extends OFValueType<F>> Match.Builder setExact(
MatchField<F> field, F value) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_12).oxms().fromValue(value, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, F value, F mask) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_12).oxms().fromValueAndMask(value, mask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, Masked<F> valueWithMask) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_12).oxms().fromMasked(valueWithMask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
initBuilder();
this.oxmListBuilder.unset(field);
updateOxmList();
return this;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 296 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 441 |
if(oxmList == null)
throw new NullPointerException("Property oxmList must not be null");
//
return new OFMatchV3Ver13(
oxmList
);
}
private OFOxmList.Builder oxmListBuilder;
private void initBuilder() {
if (oxmListBuilder != null)
return;
oxmListBuilder = new OFOxmList.Builder();
}
private void updateOxmList() {
this.oxmList = this.oxmListBuilder.build();
this.oxmListSet = true;
}
private <F extends OFValueType<F>> OFOxm<F> getOxm(MatchField<F> field) {
return this.oxmListSet ? this.oxmList.get(field) : null;
}
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null)
return null;
return value.getValue();
}
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null || !value.isMasked())
return null;
// TODO: If changing OXMs to extend Masked, then use it here
return Masked.of(value.getValue(), value.getMask());
}
@Override
public boolean supports(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean supportsMasked(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean isExact(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && !value.isMasked());
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value == null);
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && value.isMasked());
}
@Override
public <F extends OFValueType<F>> Match.Builder setExact(
MatchField<F> field, F value) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_13).oxms().fromValue(value, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, F value, F mask) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_13).oxms().fromValueAndMask(value, mask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, Masked<F> valueWithMask) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_13).oxms().fromMasked(valueWithMask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
initBuilder();
this.oxmListBuilder.unset(field);
updateOxmList();
return this;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 257 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 524 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFlowAdd.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public int getImportance() {
return importance;
}
@Override
public OFFlowAdd.Builder setImportance(int importance) {
this.importance = importance;
this.importanceSet = true;
return this;
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 257 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 524 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFlowDeleteStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public int getImportance() {
return importance;
}
@Override
public OFFlowDeleteStrict.Builder setImportance(int importance) {
this.importance = importance;
this.importanceSet = true;
return this;
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 257 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 524 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFlowDelete.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public int getImportance() {
return importance;
}
@Override
public OFFlowDelete.Builder setImportance(int importance) {
this.importance = importance;
this.importanceSet = true;
return this;
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 257 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 524 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFlowModifyStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public int getImportance() {
return importance;
}
@Override
public OFFlowModifyStrict.Builder setImportance(int importance) {
this.importance = importance;
this.importanceSet = true;
return this;
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 257 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 524 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFlowModify.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public int getImportance() {
return importance;
}
@Override
public OFFlowModify.Builder setImportance(int importance) {
this.importance = importance;
this.importanceSet = true;
return this;
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 296 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 439 |
if(oxmList == null)
throw new NullPointerException("Property oxmList must not be null");
//
return new OFMatchV3Ver14(
oxmList
);
}
private OFOxmList.Builder oxmListBuilder;
private void initBuilder() {
if (oxmListBuilder != null)
return;
oxmListBuilder = new OFOxmList.Builder();
}
private void updateOxmList() {
this.oxmList = this.oxmListBuilder.build();
this.oxmListSet = true;
}
private <F extends OFValueType<F>> OFOxm<F> getOxm(MatchField<F> field) {
return this.oxmListSet ? this.oxmList.get(field) : null;
}
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null)
return null;
return value.getValue();
}
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null || !value.isMasked())
return null;
// TODO: If changing OXMs to extend Masked, then use it here
return Masked.of(value.getValue(), value.getMask());
}
@Override
public boolean supports(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean supportsMasked(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean isExact(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && !value.isMasked());
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value == null);
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && value.isMasked());
}
@Override
public <F extends OFValueType<F>> Match.Builder setExact(
MatchField<F> field, F value) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_14).oxms().fromValue(value, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, F value, F mask) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_14).oxms().fromValueAndMask(value, mask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, Masked<F> valueWithMask) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_14).oxms().fromMasked(valueWithMask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
initBuilder();
this.oxmListBuilder.unset(field);
updateOxmList();
return this;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 468 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch() {
return match;
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions() {
return writeActions;
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) {
this.writeActions = writeActions;
this.writeActionsSet = true;
return this;
}
@Override
public long getApplyActions() {
return applyActions;
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) {
this.applyActions = applyActions;
this.applyActionsSet = true;
return this;
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.1");
}
@Override
public OFTableStatsEntry.Builder setWriteSetfields(U64 writeSetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property writeSetfields not supported in version 1.1");
}
@Override
public U64 getApplySetfields()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.1");
}
@Override
public OFTableStatsEntry.Builder setApplySetfields(U64 applySetfields) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property applySetfields not supported in version 1.1");
}
@Override
public U64 getMetadataMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.1");
}
@Override
public OFTableStatsEntry.Builder setMetadataMatch(U64 metadataMatch) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataMatch not supported in version 1.1");
}
@Override
public U64 getMetadataWrite()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.1");
}
@Override
public OFTableStatsEntry.Builder setMetadataWrite(U64 metadataWrite) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property metadataWrite not supported in version 1.1");
}
@Override
public long getInstructions() {
return instructions;
}
@Override
public OFTableStatsEntry.Builder setInstructions(long instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableStatsEntry.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFTableStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 267 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 547 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFPortStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFPortStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFPortStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFPortStatsEntry.Builder setProperties(List<OFPortStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 254 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 532 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch() {
return match;
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions() {
return writeActions;
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) {
this.writeActions = writeActions;
this.writeActionsSet = true;
return this;
}
@Override
public long getApplyActions() {
return applyActions;
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) {
this.applyActions = applyActions;
this.applyActionsSet = true;
return this;
}
@Override
public U64 getWriteSetfields() {
return writeSetfields;
}
@Override
public OFTableStatsEntry.Builder setWriteSetfields(U64 writeSetfields) {
this.writeSetfields = writeSetfields;
this.writeSetfieldsSet = true;
return this;
}
@Override
public U64 getApplySetfields() {
return applySetfields;
}
@Override
public OFTableStatsEntry.Builder setApplySetfields(U64 applySetfields) {
this.applySetfields = applySetfields;
this.applySetfieldsSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableStatsEntry.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableStatsEntry.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getInstructions() {
return instructions;
}
@Override
public OFTableStatsEntry.Builder setInstructions(long instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableStatsEntry.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFTableStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPktinFlagSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPktinFlagSerializerVer14.java | 34 |
public class OFBsnPktinFlagSerializerVer13 {
public final static long BSN_PKTIN_FLAG_PDU_VAL = 0x1L;
public final static long BSN_PKTIN_FLAG_NEW_HOST_VAL = 0x2L;
public final static long BSN_PKTIN_FLAG_STATION_MOVE_VAL = 0x4L;
public final static long BSN_PKTIN_FLAG_ARP_VAL = 0x8L;
public final static long BSN_PKTIN_FLAG_DHCP_VAL = 0x10L;
public final static long BSN_PKTIN_FLAG_L2_CPU_VAL = 0x20L;
public final static long BSN_PKTIN_FLAG_DEBUG_VAL = 0x40L;
public final static long BSN_PKTIN_FLAG_TTL_EXPIRED_VAL = 0x80L;
public final static long BSN_PKTIN_FLAG_L3_MISS_VAL = 0x100L;
public final static long BSN_PKTIN_FLAG_L3_CPU_VAL = 0x200L;
public final static long BSN_PKTIN_FLAG_INGRESS_ACL_VAL = 0x400L;
public final static long BSN_PKTIN_FLAG_SFLOW_VAL = 0x800L;
public final static long BSN_PKTIN_FLAG_ARP_CACHE_VAL = 0x1000L;
public final static long BSN_PKTIN_FLAG_ARP_TARGET_VAL = 0x2000L;
public static Set<OFBsnPktinFlag> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readLong());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFBsnPktinFlag> set) {
bb.writeLong(toWireValue(set));
}
public static void putTo(Set<OFBsnPktinFlag> set, PrimitiveSink sink) {
sink.putLong(toWireValue(set));
}
public static Set<OFBsnPktinFlag> ofWireValue(long val) {
EnumSet<OFBsnPktinFlag> set = EnumSet.noneOf(OFBsnPktinFlag.class);
if((val & BSN_PKTIN_FLAG_PDU_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_PDU);
if((val & BSN_PKTIN_FLAG_NEW_HOST_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_NEW_HOST);
if((val & BSN_PKTIN_FLAG_STATION_MOVE_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_STATION_MOVE);
if((val & BSN_PKTIN_FLAG_ARP_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_ARP);
if((val & BSN_PKTIN_FLAG_DHCP_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_DHCP);
if((val & BSN_PKTIN_FLAG_L2_CPU_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_L2_CPU);
if((val & BSN_PKTIN_FLAG_DEBUG_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_DEBUG);
if((val & BSN_PKTIN_FLAG_TTL_EXPIRED_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_TTL_EXPIRED);
if((val & BSN_PKTIN_FLAG_L3_MISS_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_L3_MISS);
if((val & BSN_PKTIN_FLAG_L3_CPU_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_L3_CPU);
if((val & BSN_PKTIN_FLAG_INGRESS_ACL_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_INGRESS_ACL);
if((val & BSN_PKTIN_FLAG_SFLOW_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_SFLOW);
if((val & BSN_PKTIN_FLAG_ARP_CACHE_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_ARP_CACHE);
if((val & BSN_PKTIN_FLAG_ARP_TARGET_VAL) != 0)
set.add(OFBsnPktinFlag.BSN_PKTIN_FLAG_ARP_TARGET);
return Collections.unmodifiableSet(set);
}
public static long toWireValue(Set<OFBsnPktinFlag> set) {
long wireValue = 0;
for(OFBsnPktinFlag e: set) {
switch(e) {
case BSN_PKTIN_FLAG_PDU:
wireValue |= BSN_PKTIN_FLAG_PDU_VAL;
break;
case BSN_PKTIN_FLAG_NEW_HOST:
wireValue |= BSN_PKTIN_FLAG_NEW_HOST_VAL;
break;
case BSN_PKTIN_FLAG_STATION_MOVE:
wireValue |= BSN_PKTIN_FLAG_STATION_MOVE_VAL;
break;
case BSN_PKTIN_FLAG_ARP:
wireValue |= BSN_PKTIN_FLAG_ARP_VAL;
break;
case BSN_PKTIN_FLAG_DHCP:
wireValue |= BSN_PKTIN_FLAG_DHCP_VAL;
break;
case BSN_PKTIN_FLAG_L2_CPU:
wireValue |= BSN_PKTIN_FLAG_L2_CPU_VAL;
break;
case BSN_PKTIN_FLAG_DEBUG:
wireValue |= BSN_PKTIN_FLAG_DEBUG_VAL;
break;
case BSN_PKTIN_FLAG_TTL_EXPIRED:
wireValue |= BSN_PKTIN_FLAG_TTL_EXPIRED_VAL;
break;
case BSN_PKTIN_FLAG_L3_MISS:
wireValue |= BSN_PKTIN_FLAG_L3_MISS_VAL;
break;
case BSN_PKTIN_FLAG_L3_CPU:
wireValue |= BSN_PKTIN_FLAG_L3_CPU_VAL;
break;
case BSN_PKTIN_FLAG_INGRESS_ACL:
wireValue |= BSN_PKTIN_FLAG_INGRESS_ACL_VAL;
break;
case BSN_PKTIN_FLAG_SFLOW:
wireValue |= BSN_PKTIN_FLAG_SFLOW_VAL;
break;
case BSN_PKTIN_FLAG_ARP_CACHE:
wireValue |= BSN_PKTIN_FLAG_ARP_CACHE_VAL;
break;
case BSN_PKTIN_FLAG_ARP_TARGET:
wireValue |= BSN_PKTIN_FLAG_ARP_TARGET_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBsnPktinFlag in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 941 |
OFFlowAddVer14 other = (OFFlowAddVer14) obj;
if( xid != other.xid)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (cookieMask == null) {
if (other.cookieMask != null)
return false;
} else if (!cookieMask.equals(other.cookieMask))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if( priority != other.priority)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
if (outGroup == null) {
if (other.outGroup != null)
return false;
} else if (!outGroup.equals(other.outGroup))
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if( importance != other.importance)
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (instructions == null) {
if (other.instructions != null)
return false;
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((cookieMask == null) ? 0 : cookieMask.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + priority;
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode());
result = prime * result + ((outGroup == null) ? 0 : outGroup.hashCode());
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + importance;
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + ((instructions == null) ? 0 : instructions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 169 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 124 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 124 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 124 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 124 |
boolean pflag = ft.handleFlowMods(this.clone());
/* used by OFAction virtualization */
OVXMatch ovxMatch = new OVXMatch((OFMatchV1)this.match);
ovxCookie = ((OVXFlowTable) ft).getCookie(this, false);
ovxMatch.setCookie(ovxCookie);
this.cookie=U64.of(ovxMatch.getCookie());
for (OFAction act : this.getActions()) {
try {
if(act.getType().equals(OFActionType.SET_NW_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionDataLayerDestination(((OFActionSetDlDst)act).getDlAddr());
else if(act.getType().equals(OFActionType.SET_NW_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionDataLayerSource(((OFActionSetDlSrc)act).getDlAddr());
else if(act.getType().equals(OFActionType.ENQUEUE))
act=OVXFactoryInst.myOVXFactory.buildOVXActionEnqueue(((OFActionEnqueue)act).getPort(),((OFActionEnqueue)act).getQueueId());
else if(act.getType().equals(OFActionType.SET_NW_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerDestination(((OFActionSetNwDst)act).getNwAddr());
else if(act.getType().equals(OFActionType.SET_NW_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerSource(((OFActionSetNwSrc)act).getNwAddr());
else if(act.getType().equals(OFActionType.SET_NW_TOS))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkTypeOfService(((OFActionSetNwTos)act).getNwTos());
else if(act.getType().equals(OFActionType.OUTPUT))
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutput(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
else if(act.getType().equals(OFActionType.STRIP_VLAN))
act=OVXFactoryInst.myOVXFactory.buildOVXActionStripVirtualLan();
else if(act.getType().equals(OFActionType.SET_TP_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionTransportLayerDestination(((OFActionSetTpDst)act).getTpPort());
else if(act.getType().equals(OFActionType.SET_TP_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionTransportLayerSource(((OFActionSetTpSrc)act).getTpPort());
else if(act.getType().equals(OFActionType.SET_VLAN_VID))
act=OVXFactoryInst.myOVXFactory.buildOVXActionVirtualLanIdentifier(((OFActionSetVlanVid)act).getVlanVid());
else if(act.getType().equals(OFActionType.SET_VLAN_PCP))
act=OVXFactoryInst.myOVXFactory.buildOVXActionVirtualLanPriorityCodePoint(((OFActionSetVlanPcp)act).getVlanPcp());
//System.out.println("Match before virtualize: "+ ovxMatch.toString());
((VirtualizableAction) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 477 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 477 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 477 |
return new OFPortStatsEntryVer10(
portNo,
rxPackets,
txPackets,
rxBytes,
txBytes,
rxDropped,
txDropped,
rxErrors,
txErrors,
rxFrameErr,
rxOverErr,
rxCrcErr,
collisions
);
}
}
static class Builder implements OFPortStatsEntry.Builder {
// OF message fields
private boolean portNoSet;
private OFPort portNo;
private boolean rxPacketsSet;
private U64 rxPackets;
private boolean txPacketsSet;
private U64 txPackets;
private boolean rxBytesSet;
private U64 rxBytes;
private boolean txBytesSet;
private U64 txBytes;
private boolean rxDroppedSet;
private U64 rxDropped;
private boolean txDroppedSet;
private U64 txDropped;
private boolean rxErrorsSet;
private U64 rxErrors;
private boolean txErrorsSet;
private U64 txErrors;
private boolean rxFrameErrSet;
private U64 rxFrameErr;
private boolean rxOverErrSet;
private U64 rxOverErr;
private boolean rxCrcErrSet;
private U64 rxCrcErr;
private boolean collisionsSet;
private U64 collisions;
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 969 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 965 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 964 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 965 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 963 |
OFFlowAddVer11 other = (OFFlowAddVer11) obj;
if( xid != other.xid)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (cookieMask == null) {
if (other.cookieMask != null)
return false;
} else if (!cookieMask.equals(other.cookieMask))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if( priority != other.priority)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
if (outGroup == null) {
if (other.outGroup != null)
return false;
} else if (!outGroup.equals(other.outGroup))
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (instructions == null) {
if (other.instructions != null)
return false;
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((cookieMask == null) ? 0 : cookieMask.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + priority;
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode());
result = prime * result + ((outGroup == null) ? 0 : outGroup.hashCode());
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + ((instructions == null) ? 0 : instructions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterSerializerVer14.java | 30 |
public class OFBsnPortCounterSerializerVer13 {
public final static byte BSN_PORT_COUNTER_RX_BYTES_VAL = (byte) 0x0;
public final static byte BSN_PORT_COUNTER_RX_PACKETS_UNICAST_VAL = (byte) 0x1;
public final static byte BSN_PORT_COUNTER_RX_PACKETS_BROADCAST_VAL = (byte) 0x2;
public final static byte BSN_PORT_COUNTER_RX_PACKETS_MULTICAST_VAL = (byte) 0x3;
public final static byte BSN_PORT_COUNTER_RX_DROPPED_VAL = (byte) 0x4;
public final static byte BSN_PORT_COUNTER_RX_ERRORS_VAL = (byte) 0x5;
public final static byte BSN_PORT_COUNTER_TX_BYTES_VAL = (byte) 0x6;
public final static byte BSN_PORT_COUNTER_TX_PACKETS_UNICAST_VAL = (byte) 0x7;
public final static byte BSN_PORT_COUNTER_TX_PACKETS_BROADCAST_VAL = (byte) 0x8;
public final static byte BSN_PORT_COUNTER_TX_PACKETS_MULTICAST_VAL = (byte) 0x9;
public final static byte BSN_PORT_COUNTER_TX_DROPPED_VAL = (byte) 0xa;
public final static byte BSN_PORT_COUNTER_TX_ERRORS_VAL = (byte) 0xb;
public final static byte BSN_PORT_COUNTER_RX_RUNTS_VAL = (byte) 0xc;
public final static byte BSN_PORT_COUNTER_RX_GIANTS_VAL = (byte) 0xd;
public final static byte BSN_PORT_COUNTER_RX_CRC_ERRORS_VAL = (byte) 0xe;
public final static byte BSN_PORT_COUNTER_RX_ALIGNMENT_ERRORS_VAL = (byte) 0xf;
public final static byte BSN_PORT_COUNTER_RX_SYMBOL_ERRORS_VAL = (byte) 0x10;
public final static byte BSN_PORT_COUNTER_RX_PAUSE_INPUT_VAL = (byte) 0x11;
public final static byte BSN_PORT_COUNTER_TX_COLLISIONS_VAL = (byte) 0x12;
public final static byte BSN_PORT_COUNTER_TX_LATE_COLLISIONS_VAL = (byte) 0x13;
public final static byte BSN_PORT_COUNTER_TX_DEFERRED_VAL = (byte) 0x14;
public final static byte BSN_PORT_COUNTER_TX_PAUSE_OUTPUT_VAL = (byte) 0x15;
public final static byte BSN_PORT_COUNTER_RX_PACKETS_VAL = (byte) 0x16;
public final static byte BSN_PORT_COUNTER_TX_PACKETS_VAL = (byte) 0x17;
public final static byte BSN_PORT_COUNTER_RX_LENGTH_ERRORS_VAL = (byte) 0x18;
public final static byte BSN_PORT_COUNTER_RX_OVERFLOW_ERRORS_VAL = (byte) 0x19;
public final static byte BSN_PORT_COUNTER_TX_CARRIER_ERRORS_VAL = (byte) 0x1a;
public final static byte BSN_PORT_COUNTER_RX_PACKETS_BAD_VLAN_VAL = (byte) 0x1b;
public static OFBsnPortCounter readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnPortCounter e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnPortCounter e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnPortCounter ofWireValue(byte val) {
switch(val) {
case BSN_PORT_COUNTER_RX_BYTES_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_BYTES;
case BSN_PORT_COUNTER_RX_PACKETS_UNICAST_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_PACKETS_UNICAST;
case BSN_PORT_COUNTER_RX_PACKETS_BROADCAST_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_PACKETS_BROADCAST;
case BSN_PORT_COUNTER_RX_PACKETS_MULTICAST_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_PACKETS_MULTICAST;
case BSN_PORT_COUNTER_RX_DROPPED_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_DROPPED;
case BSN_PORT_COUNTER_RX_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_ERRORS;
case BSN_PORT_COUNTER_TX_BYTES_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_BYTES;
case BSN_PORT_COUNTER_TX_PACKETS_UNICAST_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_PACKETS_UNICAST;
case BSN_PORT_COUNTER_TX_PACKETS_BROADCAST_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_PACKETS_BROADCAST;
case BSN_PORT_COUNTER_TX_PACKETS_MULTICAST_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_PACKETS_MULTICAST;
case BSN_PORT_COUNTER_TX_DROPPED_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_DROPPED;
case BSN_PORT_COUNTER_TX_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_ERRORS;
case BSN_PORT_COUNTER_RX_RUNTS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_RUNTS;
case BSN_PORT_COUNTER_RX_GIANTS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_GIANTS;
case BSN_PORT_COUNTER_RX_CRC_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_CRC_ERRORS;
case BSN_PORT_COUNTER_RX_ALIGNMENT_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_ALIGNMENT_ERRORS;
case BSN_PORT_COUNTER_RX_SYMBOL_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_SYMBOL_ERRORS;
case BSN_PORT_COUNTER_RX_PAUSE_INPUT_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_PAUSE_INPUT;
case BSN_PORT_COUNTER_TX_COLLISIONS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_COLLISIONS;
case BSN_PORT_COUNTER_TX_LATE_COLLISIONS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_LATE_COLLISIONS;
case BSN_PORT_COUNTER_TX_DEFERRED_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_DEFERRED;
case BSN_PORT_COUNTER_TX_PAUSE_OUTPUT_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_PAUSE_OUTPUT;
case BSN_PORT_COUNTER_RX_PACKETS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_PACKETS;
case BSN_PORT_COUNTER_TX_PACKETS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_PACKETS;
case BSN_PORT_COUNTER_RX_LENGTH_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_LENGTH_ERRORS;
case BSN_PORT_COUNTER_RX_OVERFLOW_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_OVERFLOW_ERRORS;
case BSN_PORT_COUNTER_TX_CARRIER_ERRORS_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_TX_CARRIER_ERRORS;
case BSN_PORT_COUNTER_RX_PACKETS_BAD_VLAN_VAL:
return OFBsnPortCounter.BSN_PORT_COUNTER_RX_PACKETS_BAD_VLAN;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnPortCounter in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 398 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 398 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 398 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 398 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 398 |
return new OFBsnVportL2GreVer10(
flags,
portNo,
loopbackPortNo,
localMac,
nhMac,
srcIp,
dstIp,
dscp,
ttl,
vpn,
rateLimit,
ifName
);
}
}
static class Builder implements OFBsnVportL2Gre.Builder {
// OF message fields
private boolean flagsSet;
private Set<OFBsnVportL2GreFlags> flags;
private boolean portNoSet;
private OFPort portNo;
private boolean loopbackPortNoSet;
private OFPort loopbackPortNo;
private boolean localMacSet;
private MacAddress localMac;
private boolean nhMacSet;
private MacAddress nhMac;
private boolean srcIpSet;
private IPv4Address srcIp;
private boolean dstIpSet;
private IPv4Address dstIp;
private boolean dscpSet;
private short dscp;
private boolean ttlSet;
private short ttl;
private boolean vpnSet;
private long vpn;
private boolean rateLimitSet;
private long rateLimit;
private boolean ifNameSet;
private String ifName;
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 754 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 754 |
OFPortDescVer11 other = (OFPortDescVer11) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (config == null) {
if (other.config != null)
return false;
} else if (!config.equals(other.config))
return false;
if (state == null) {
if (other.state != null)
return false;
} else if (!state.equals(other.state))
return false;
if (curr == null) {
if (other.curr != null)
return false;
} else if (!curr.equals(other.curr))
return false;
if (advertised == null) {
if (other.advertised != null)
return false;
} else if (!advertised.equals(other.advertised))
return false;
if (supported == null) {
if (other.supported != null)
return false;
} else if (!supported.equals(other.supported))
return false;
if (peer == null) {
if (other.peer != null)
return false;
} else if (!peer.equals(other.peer))
return false;
if( currSpeed != other.currSpeed)
return false;
if( maxSpeed != other.maxSpeed)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((config == null) ? 0 : config.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result + ((curr == null) ? 0 : curr.hashCode());
result = prime * result + ((advertised == null) ? 0 : advertised.hashCode());
result = prime * result + ((supported == null) ? 0 : supported.hashCode());
result = prime * result + ((peer == null) ? 0 : peer.hashCode());
result = prime * (int) (currSpeed ^ (currSpeed >>> 32));
result = prime * (int) (maxSpeed ^ (maxSpeed >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 396 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 396 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 396 |
return new OFPortDescVer11(
portNo,
hwAddr,
name,
config,
state,
curr,
advertised,
supported,
peer,
currSpeed,
maxSpeed
);
}
}
static class Builder implements OFPortDesc.Builder {
// OF message fields
private boolean portNoSet;
private OFPort portNo;
private boolean hwAddrSet;
private MacAddress hwAddr;
private boolean nameSet;
private String name;
private boolean configSet;
private Set<OFPortConfig> config;
private boolean stateSet;
private Set<OFPortState> state;
private boolean currSet;
private Set<OFPortFeatures> curr;
private boolean advertisedSet;
private Set<OFPortFeatures> advertised;
private boolean supportedSet;
private Set<OFPortFeatures> supported;
private boolean peerSet;
private Set<OFPortFeatures> peer;
private boolean currSpeedSet;
private long currSpeed;
private boolean maxSpeedSet;
private long maxSpeed;
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 217 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 441 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFFlowStatsEntry.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flags not supported in version 1.0");
}
@Override
public OFFlowStatsEntry.Builder setFlags(Set<OFFlowModFlags> flags) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flags not supported in version 1.0");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFFlowStatsEntry.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 217 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 441 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFlowStatsEntry.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public Set<OFFlowModFlags> getFlags()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flags not supported in version 1.1");
}
@Override
public OFFlowStatsEntry.Builder setFlags(Set<OFFlowModFlags> flags) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flags not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowStatsEntry.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 217 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 441 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFlowStatsEntry.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public Set<OFFlowModFlags> getFlags()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flags not supported in version 1.2");
}
@Override
public OFFlowStatsEntry.Builder setFlags(Set<OFFlowModFlags> flags) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flags not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFFlowStatsEntry.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 458 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.3");
}
@Override
public OFFlowStatsEntry.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.3");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsEntry.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowStatsEntry.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 469 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFlowStatsEntry.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsEntry.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getImportance() {
return importance;
}
@Override
public OFFlowStatsEntry.Builder setImportance(int importance) {
this.importance = importance;
this.importanceSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 362 |
return new OFBsnLacpStatsEntryVer13(
portNo,
actorSysPriority,
actorSysMac,
actorPortPriority,
actorPortNum,
actorKey,
convergenceStatus,
partnerSysPriority,
partnerSysMac,
partnerPortPriority,
partnerPortNum,
partnerKey
);
}
}
static class Builder implements OFBsnLacpStatsEntry.Builder {
// OF message fields
private boolean portNoSet;
private OFPort portNo;
private boolean actorSysPrioritySet;
private int actorSysPriority;
private boolean actorSysMacSet;
private MacAddress actorSysMac;
private boolean actorPortPrioritySet;
private int actorPortPriority;
private boolean actorPortNumSet;
private int actorPortNum;
private boolean actorKeySet;
private int actorKey;
private boolean convergenceStatusSet;
private short convergenceStatus;
private boolean partnerSysPrioritySet;
private int partnerSysPriority;
private boolean partnerSysMacSet;
private MacAddress partnerSysMac;
private boolean partnerPortPrioritySet;
private int partnerPortPriority;
private boolean partnerPortNumSet;
private int partnerPortNum;
private boolean partnerKeySet;
private int partnerKey;
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpStatsEntry.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 790 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 790 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 790 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 790 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 790 |
OFBsnVportL2GreVer10 other = (OFBsnVportL2GreVer10) obj;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (loopbackPortNo == null) {
if (other.loopbackPortNo != null)
return false;
} else if (!loopbackPortNo.equals(other.loopbackPortNo))
return false;
if (localMac == null) {
if (other.localMac != null)
return false;
} else if (!localMac.equals(other.localMac))
return false;
if (nhMac == null) {
if (other.nhMac != null)
return false;
} else if (!nhMac.equals(other.nhMac))
return false;
if (srcIp == null) {
if (other.srcIp != null)
return false;
} else if (!srcIp.equals(other.srcIp))
return false;
if (dstIp == null) {
if (other.dstIp != null)
return false;
} else if (!dstIp.equals(other.dstIp))
return false;
if( dscp != other.dscp)
return false;
if( ttl != other.ttl)
return false;
if( vpn != other.vpn)
return false;
if( rateLimit != other.rateLimit)
return false;
if (ifName == null) {
if (other.ifName != null)
return false;
} else if (!ifName.equals(other.ifName))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((loopbackPortNo == null) ? 0 : loopbackPortNo.hashCode());
result = prime * result + ((localMac == null) ? 0 : localMac.hashCode());
result = prime * result + ((nhMac == null) ? 0 : nhMac.hashCode());
result = prime * result + ((srcIp == null) ? 0 : srcIp.hashCode());
result = prime * result + ((dstIp == null) ? 0 : dstIp.hashCode());
result = prime * result + dscp;
result = prime * result + ttl;
result = prime * (int) (vpn ^ (vpn >>> 32));
result = prime * (int) (rateLimit ^ (rateLimit >>> 32));
result = prime * result + ((ifName == null) ? 0 : ifName.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsEntryVer13.java | 242 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsEntryVer13.java | 483 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFCalientPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortAdminState> getInAdminStatus() {
return inAdminStatus;
}
@Override
public OFCalientPortStatsEntry.Builder setInAdminStatus(Set<OFCalientOpticalPortAdminState> inAdminStatus) {
this.inAdminStatus = inAdminStatus;
this.inAdminStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperState> getInOperStatus() {
return inOperStatus;
}
@Override
public OFCalientPortStatsEntry.Builder setInOperStatus(Set<OFCalientOpticalPortOperState> inOperStatus) {
this.inOperStatus = inOperStatus;
this.inOperStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperCapability> getInOperCapability() {
return inOperCapability;
}
@Override
public OFCalientPortStatsEntry.Builder setInOperCapability(Set<OFCalientOpticalPortOperCapability> inOperCapability) {
this.inOperCapability = inOperCapability;
this.inOperCapabilitySet = true;
return this;
}
@Override
public Set<OFCalientOcsAlarm> getInAlarm() {
return inAlarm;
}
@Override
public OFCalientPortStatsEntry.Builder setInAlarm(Set<OFCalientOcsAlarm> inAlarm) {
this.inAlarm = inAlarm;
this.inAlarmSet = true;
return this;
}
@Override
public String getInportPower() {
return inportPower;
}
@Override
public OFCalientPortStatsEntry.Builder setInportPower(String inportPower) {
this.inportPower = inportPower;
this.inportPowerSet = true;
return this;
}
@Override
public String getOutportPower() {
return outportPower;
}
@Override
public OFCalientPortStatsEntry.Builder setOutportPower(String outportPower) {
this.outportPower = outportPower;
this.outportPowerSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortAdminState> getOutAdminStatus() {
return outAdminStatus;
}
@Override
public OFCalientPortStatsEntry.Builder setOutAdminStatus(Set<OFCalientOpticalPortAdminState> outAdminStatus) {
this.outAdminStatus = outAdminStatus;
this.outAdminStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperState> getOutOperStatus() {
return outOperStatus;
}
@Override
public OFCalientPortStatsEntry.Builder setOutOperStatus(Set<OFCalientOpticalPortOperState> outOperStatus) {
this.outOperStatus = outOperStatus;
this.outOperStatusSet = true;
return this;
}
@Override
public Set<OFCalientOpticalPortOperCapability> getOutOperCapability() {
return outOperCapability;
}
@Override
public OFCalientPortStatsEntry.Builder setOutOperCapability(Set<OFCalientOpticalPortOperCapability> outOperCapability) {
this.outOperCapability = outOperCapability;
this.outOperCapabilitySet = true;
return this;
}
@Override
public Set<OFCalientOcsAlarm> getOutAlarm() {
return outAlarm;
}
@Override
public OFCalientPortStatsEntry.Builder setOutAlarm(Set<OFCalientOcsAlarm> outAlarm) {
this.outAlarm = outAlarm;
this.outAlarmSet = true;
return this;
}
@Override
public String getInCircuitId() {
return inCircuitId;
}
@Override
public OFCalientPortStatsEntry.Builder setInCircuitId(String inCircuitId) {
this.inCircuitId = inCircuitId;
this.inCircuitIdSet = true;
return this;
}
@Override
public String getOutCircuitId() {
return outCircuitId;
}
@Override
public OFCalientPortStatsEntry.Builder setOutCircuitId(String outCircuitId) {
this.outCircuitId = outCircuitId;
this.outCircuitIdSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFCalientPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 270 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 544 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
if (!this.instructionsSet)
return parentMessage.getActions(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 540 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
if (!this.instructionsSet)
return parentMessage.getActions(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 265 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 539 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
if (!this.instructionsSet)
return parentMessage.getActions(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 540 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
if (!this.instructionsSet)
return parentMessage.getActions(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 538 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
if (!this.instructionsSet)
return parentMessage.getActions(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 462 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFBsnLacpConvergenceNotif build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 462 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFBsnLacpConvergenceNotif build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 187 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 187 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 187 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
//
return new OFAggregateStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 187 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 187 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 187 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
//
return new OFFlowStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 229 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 465 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFBsnLacpConvergenceNotif build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 465 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 229 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpConvergenceNotif.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
//
@Override
public OFBsnLacpConvergenceNotif build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 399 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 399 |
return new OFFlowStatsEntryVer11(
tableId,
durationSec,
durationNsec,
priority,
idleTimeout,
hardTimeout,
cookie,
packetCount,
byteCount,
match,
instructions
);
}
}
static class Builder implements OFFlowStatsEntry.Builder {
// OF message fields
private boolean tableIdSet;
private TableId tableId;
private boolean durationSecSet;
private long durationSec;
private boolean durationNsecSet;
private long durationNsec;
private boolean prioritySet;
private int priority;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean cookieSet;
private U64 cookie;
private boolean packetCountSet;
private U64 packetCount;
private boolean byteCountSet;
private U64 byteCount;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 547 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowAdd.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowAdd.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowAdd.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowAdd.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowAdd.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowAdd.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowAdd.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 269 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 543 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDeleteStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDeleteStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDeleteStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDeleteStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDeleteStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDeleteStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDeleteStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDeleteStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 542 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowDelete.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowDelete.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowDelete.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowDelete.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowDelete.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowDelete.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowDelete.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 269 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 543 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModifyStrict.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModifyStrict.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModifyStrict.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModifyStrict.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModifyStrict.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModifyStrict.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModifyStrict.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModifyStrict.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 255 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 516 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 255 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 516 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 267 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 541 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 527 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowModify.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowModify.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModify.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowModify.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public OFFlowModify.Builder setFlags(Set<OFFlowModFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowModify.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowModify.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 193 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 369 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property curr not supported in version 1.4");
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property curr not supported in version 1.4");
}
@Override
public Set<OFPortFeatures> getAdvertised()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property advertised not supported in version 1.4");
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property advertised not supported in version 1.4");
}
@Override
public Set<OFPortFeatures> getSupported()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property supported not supported in version 1.4");
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property supported not supported in version 1.4");
}
@Override
public Set<OFPortFeatures> getPeer()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property peer not supported in version 1.4");
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property peer not supported in version 1.4");
}
@Override
public long getCurrSpeed()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property currSpeed not supported in version 1.4");
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property currSpeed not supported in version 1.4");
}
@Override
public long getMaxSpeed()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxSpeed not supported in version 1.4");
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxSpeed not supported in version 1.4");
}
@Override
public List<OFPortDescProp> getProperties() {
return properties;
}
@Override
public OFPortDesc.Builder setProperties(List<OFPortDescProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 351 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
return new OFAggregateStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 351 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
return new OFFlowStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 216 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 416 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property currSpeed not supported in version 1.0");
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property currSpeed not supported in version 1.0");
}
@Override
public long getMaxSpeed()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxSpeed not supported in version 1.0");
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property maxSpeed not supported in version 1.0");
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFPortDesc.Builder setProperties(List<OFPortDescProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 438 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFPortDesc.Builder setProperties(List<OFPortDescProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 438 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFPortDesc.Builder setProperties(List<OFPortDescProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 438 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFPortDesc.Builder setProperties(List<OFPortDescProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 660 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1451 |
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFMatchV1.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFMatchV1.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public MacAddress getEthSrc() {
return ethSrc;
}
@Override
public OFMatchV1.Builder setEthSrc(MacAddress ethSrc) {
this.ethSrc = ethSrc;
this.ethSrcSet = true;
return this;
}
@Override
public MacAddress getEthDst() {
return ethDst;
}
@Override
public OFMatchV1.Builder setEthDst(MacAddress ethDst) {
this.ethDst = ethDst;
this.ethDstSet = true;
return this;
}
@Override
public OFVlanVidMatch getVlanVid() {
return vlanVid;
}
@Override
public OFMatchV1.Builder setVlanVid(OFVlanVidMatch vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public VlanPcp getVlanPcp() {
return vlanPcp;
}
@Override
public OFMatchV1.Builder setVlanPcp(VlanPcp vlanPcp) {
this.vlanPcp = vlanPcp;
this.vlanPcpSet = true;
return this;
}
@Override
public EthType getEthType() {
return ethType;
}
@Override
public OFMatchV1.Builder setEthType(EthType ethType) {
this.ethType = ethType;
this.ethTypeSet = true;
return this;
}
@Override
public IpDscp getIpDscp() {
return ipDscp;
}
@Override
public OFMatchV1.Builder setIpDscp(IpDscp ipDscp) {
this.ipDscp = ipDscp;
this.ipDscpSet = true;
return this;
}
@Override
public IpProtocol getIpProto() {
return ipProto;
}
@Override
public OFMatchV1.Builder setIpProto(IpProtocol ipProto) {
this.ipProto = ipProto;
this.ipProtoSet = true;
return this;
}
@Override
public IPv4Address getIpv4Src() {
return ipv4Src;
}
@Override
public OFMatchV1.Builder setIpv4Src(IPv4Address ipv4Src) {
this.ipv4Src = ipv4Src;
this.ipv4SrcSet = true;
return this;
}
@Override
public IPv4Address getIpv4Dst() {
return ipv4Dst;
}
@Override
public OFMatchV1.Builder setIpv4Dst(IPv4Address ipv4Dst) {
this.ipv4Dst = ipv4Dst;
this.ipv4DstSet = true;
return this;
}
@Override
public TransportPort getTcpSrc() {
return tcpSrc;
}
@Override
public OFMatchV1.Builder setTcpSrc(TransportPort tcpSrc) {
this.tcpSrc = tcpSrc;
this.tcpSrcSet = true;
return this;
}
@Override
public TransportPort getTcpDst() {
return tcpDst;
}
@Override
public OFMatchV1.Builder setTcpDst(TransportPort tcpDst) {
this.tcpDst = tcpDst;
this.tcpDstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFMatchV1 build() {
int wildcards = this.wildcardsSet ? this.wildcards : parentMessage.wildcards; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 206 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 418 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 206 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 418 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 206 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 418 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 253 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 253 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 253 |
BuilderWithParent(OFPortStatsEntryVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 177 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 132 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 132 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 132 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 132 |
| net/onrc/openvirtex/messages/ver10/OVXPacketOutVer10.java | 162 |
for (OFAction act : this.getActions()) {
try {
if(act.getType().equals(OFActionType.SET_NW_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionDataLayerDestination(((OFActionSetDlDst)act).getDlAddr());
else if(act.getType().equals(OFActionType.SET_NW_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionDataLayerSource(((OFActionSetDlSrc)act).getDlAddr());
else if(act.getType().equals(OFActionType.ENQUEUE))
act=OVXFactoryInst.myOVXFactory.buildOVXActionEnqueue(((OFActionEnqueue)act).getPort(),((OFActionEnqueue)act).getQueueId());
else if(act.getType().equals(OFActionType.SET_NW_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerDestination(((OFActionSetNwDst)act).getNwAddr());
else if(act.getType().equals(OFActionType.SET_NW_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerSource(((OFActionSetNwSrc)act).getNwAddr());
else if(act.getType().equals(OFActionType.SET_NW_TOS))
act=OVXFactoryInst.myOVXFactory.buildOVXActionNetworkTypeOfService(((OFActionSetNwTos)act).getNwTos());
else if(act.getType().equals(OFActionType.OUTPUT))
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutput(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
else if(act.getType().equals(OFActionType.STRIP_VLAN))
act=OVXFactoryInst.myOVXFactory.buildOVXActionStripVirtualLan();
else if(act.getType().equals(OFActionType.SET_TP_DST))
act=OVXFactoryInst.myOVXFactory.buildOVXActionTransportLayerDestination(((OFActionSetTpDst)act).getTpPort());
else if(act.getType().equals(OFActionType.SET_TP_SRC))
act=OVXFactoryInst.myOVXFactory.buildOVXActionTransportLayerSource(((OFActionSetTpSrc)act).getTpPort());
else if(act.getType().equals(OFActionType.SET_VLAN_VID))
act=OVXFactoryInst.myOVXFactory.buildOVXActionVirtualLanIdentifier(((OFActionSetVlanVid)act).getVlanVid());
else if(act.getType().equals(OFActionType.SET_VLAN_PCP))
act=OVXFactoryInst.myOVXFactory.buildOVXActionVirtualLanPriorityCodePoint(((OFActionSetVlanPcp)act).getVlanPcp());
//System.out.println("Match before virtualize: "+ ovxMatch.toString());
((VirtualizableAction) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 222 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 443 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 253 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 253 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 253 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 263 |
BuilderWithParent(OFPortStatsEntryVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 443 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 443 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 209 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 421 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 421 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 421 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 209 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 209 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTypes() {
return types;
}
@Override
public OFGroupFeaturesStatsReply.Builder setTypes(long types) {
this.types = types;
this.typesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFGroupFeaturesStatsReply.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsAll(long maxGroupsAll) {
this.maxGroupsAll = maxGroupsAll;
this.maxGroupsAllSet = true;
return this;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsSelect(long maxGroupsSelect) {
this.maxGroupsSelect = maxGroupsSelect;
this.maxGroupsSelectSet = true;
return this;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsIndirect(long maxGroupsIndirect) {
this.maxGroupsIndirect = maxGroupsIndirect;
this.maxGroupsIndirectSet = true;
return this;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setMaxGroupsFf(long maxGroupsFf) {
this.maxGroupsFf = maxGroupsFf;
this.maxGroupsFfSet = true;
return this;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsAll(long actionsAll) {
this.actionsAll = actionsAll;
this.actionsAllSet = true;
return this;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsSelect(long actionsSelect) {
this.actionsSelect = actionsSelect;
this.actionsSelectSet = true;
return this;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsIndirect(long actionsIndirect) {
this.actionsIndirect = actionsIndirect;
this.actionsIndirectSet = true;
return this;
}
@Override
public long getActionsFf() {
return actionsFf;
}
@Override
public OFGroupFeaturesStatsReply.Builder setActionsFf(long actionsFf) {
this.actionsFf = actionsFf;
this.actionsFfSet = true;
return this;
}
//
@Override
public OFGroupFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 222 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 443 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 222 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 443 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 257 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 525 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 525 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 525 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 257 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 257 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 199 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 400 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0");
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0");
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 207 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 416 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.1");
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.1");
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 212 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 427 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 212 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 427 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 212 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 427 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 257 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 257 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 257 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 547 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 525 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 525 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 525 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 267 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsEntry.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsEntry.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsEntry.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsEntry.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnTcpFlagSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTcpFlagSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTcpFlagSerializerVer14.java | 34 |
public class OFBsnTcpFlagSerializerVer12 {
public final static short BSN_TCP_FLAG_FIN_VAL = (short) 0x1;
public final static short BSN_TCP_FLAG_SYN_VAL = (short) 0x2;
public final static short BSN_TCP_FLAG_RST_VAL = (short) 0x4;
public final static short BSN_TCP_FLAG_PSH_VAL = (short) 0x8;
public final static short BSN_TCP_FLAG_ACK_VAL = (short) 0x10;
public final static short BSN_TCP_FLAG_URG_VAL = (short) 0x20;
public final static short BSN_TCP_FLAG_ECE_VAL = (short) 0x40;
public final static short BSN_TCP_FLAG_CWR_VAL = (short) 0x80;
public final static short BSN_TCP_FLAG_NS_VAL = (short) 0x100;
public static Set<OFBsnTcpFlag> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFBsnTcpFlag> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFBsnTcpFlag> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFBsnTcpFlag> ofWireValue(short val) {
EnumSet<OFBsnTcpFlag> set = EnumSet.noneOf(OFBsnTcpFlag.class);
if((val & BSN_TCP_FLAG_FIN_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_FIN);
if((val & BSN_TCP_FLAG_SYN_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_SYN);
if((val & BSN_TCP_FLAG_RST_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_RST);
if((val & BSN_TCP_FLAG_PSH_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_PSH);
if((val & BSN_TCP_FLAG_ACK_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_ACK);
if((val & BSN_TCP_FLAG_URG_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_URG);
if((val & BSN_TCP_FLAG_ECE_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_ECE);
if((val & BSN_TCP_FLAG_CWR_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_CWR);
if((val & BSN_TCP_FLAG_NS_VAL) != 0)
set.add(OFBsnTcpFlag.BSN_TCP_FLAG_NS);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFBsnTcpFlag> set) {
short wireValue = 0;
for(OFBsnTcpFlag e: set) {
switch(e) {
case BSN_TCP_FLAG_FIN:
wireValue |= BSN_TCP_FLAG_FIN_VAL;
break;
case BSN_TCP_FLAG_SYN:
wireValue |= BSN_TCP_FLAG_SYN_VAL;
break;
case BSN_TCP_FLAG_RST:
wireValue |= BSN_TCP_FLAG_RST_VAL;
break;
case BSN_TCP_FLAG_PSH:
wireValue |= BSN_TCP_FLAG_PSH_VAL;
break;
case BSN_TCP_FLAG_ACK:
wireValue |= BSN_TCP_FLAG_ACK_VAL;
break;
case BSN_TCP_FLAG_URG:
wireValue |= BSN_TCP_FLAG_URG_VAL;
break;
case BSN_TCP_FLAG_ECE:
wireValue |= BSN_TCP_FLAG_ECE_VAL;
break;
case BSN_TCP_FLAG_CWR:
wireValue |= BSN_TCP_FLAG_CWR_VAL;
break;
case BSN_TCP_FLAG_NS:
wireValue |= BSN_TCP_FLAG_NS_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBsnTcpFlag in version 1.2: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFIpv6ExthdrFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFIpv6ExthdrFlagsSerializerVer14.java | 34 |
public class OFIpv6ExthdrFlagsSerializerVer13 {
public final static short NONEXT_VAL = (short) 0x1;
public final static short ESP_VAL = (short) 0x2;
public final static short AUTH_VAL = (short) 0x4;
public final static short DEST_VAL = (short) 0x8;
public final static short FRAG_VAL = (short) 0x10;
public final static short ROUTER_VAL = (short) 0x20;
public final static short HOP_VAL = (short) 0x40;
public final static short UNREP_VAL = (short) 0x80;
public final static short UNSEQ_VAL = (short) 0x100;
public static Set<OFIpv6ExthdrFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFIpv6ExthdrFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFIpv6ExthdrFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFIpv6ExthdrFlags> ofWireValue(short val) {
EnumSet<OFIpv6ExthdrFlags> set = EnumSet.noneOf(OFIpv6ExthdrFlags.class);
if((val & NONEXT_VAL) != 0)
set.add(OFIpv6ExthdrFlags.NONEXT);
if((val & ESP_VAL) != 0)
set.add(OFIpv6ExthdrFlags.ESP);
if((val & AUTH_VAL) != 0)
set.add(OFIpv6ExthdrFlags.AUTH);
if((val & DEST_VAL) != 0)
set.add(OFIpv6ExthdrFlags.DEST);
if((val & FRAG_VAL) != 0)
set.add(OFIpv6ExthdrFlags.FRAG);
if((val & ROUTER_VAL) != 0)
set.add(OFIpv6ExthdrFlags.ROUTER);
if((val & HOP_VAL) != 0)
set.add(OFIpv6ExthdrFlags.HOP);
if((val & UNREP_VAL) != 0)
set.add(OFIpv6ExthdrFlags.UNREP);
if((val & UNSEQ_VAL) != 0)
set.add(OFIpv6ExthdrFlags.UNSEQ);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFIpv6ExthdrFlags> set) {
short wireValue = 0;
for(OFIpv6ExthdrFlags e: set) {
switch(e) {
case NONEXT:
wireValue |= NONEXT_VAL;
break;
case ESP:
wireValue |= ESP_VAL;
break;
case AUTH:
wireValue |= AUTH_VAL;
break;
case DEST:
wireValue |= DEST_VAL;
break;
case FRAG:
wireValue |= FRAG_VAL;
break;
case ROUTER:
wireValue |= ROUTER_VAL;
break;
case HOP:
wireValue |= HOP_VAL;
break;
case UNREP:
wireValue |= UNREP_VAL;
break;
case UNSEQ:
wireValue |= UNSEQ_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFIpv6ExthdrFlags in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 176 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 176 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFBsnSetLacpRequest.Builder setEnabled(short enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnSetLacpRequest.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public OFBsnSetLacpRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
short enabled = this.enabledSet ? this.enabled : parentMessage.enabled;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : parentMessage.actorSysPriority;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : parentMessage.actorSysMac;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : parentMessage.actorPortPriority;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : parentMessage.actorPortNum;
int actorKey = this.actorKeySet ? this.actorKey : parentMessage.actorKey;
//
return new OFBsnSetLacpRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 218 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 218 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 218 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 218 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 218 |
BuilderWithParent(OFBsnVportL2GreVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 174 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 174 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 174 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 174 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String mfrDesc = this.mfrDescSet ? this.mfrDesc : parentMessage.mfrDesc;
if(mfrDesc == null)
throw new NullPointerException("Property mfrDesc must not be null");
String hwDesc = this.hwDescSet ? this.hwDesc : parentMessage.hwDesc;
if(hwDesc == null)
throw new NullPointerException("Property hwDesc must not be null");
String swDesc = this.swDescSet ? this.swDesc : parentMessage.swDesc;
if(swDesc == null)
throw new NullPointerException("Property swDesc must not be null");
String serialNum = this.serialNumSet ? this.serialNum : parentMessage.serialNum;
if(serialNum == null)
throw new NullPointerException("Property serialNum must not be null");
String dpDesc = this.dpDescSet ? this.dpDesc : parentMessage.dpDesc;
if(dpDesc == null)
throw new NullPointerException("Property dpDesc must not be null");
//
return new OFDescStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 215 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 430 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 430 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 430 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 215 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 215 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowRemoved.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 201 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 407 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpStatsEntry.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnLacpStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 201 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 407 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpStatsEntry.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnLacpStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 222 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 443 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 443 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 443 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 222 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 222 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 222 |
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFBsnVportL2Gre.Builder setFlags(Set<OFBsnVportL2GreFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnVportL2Gre.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public OFBsnVportL2Gre.Builder setLoopbackPortNo(OFPort loopbackPortNo) {
this.loopbackPortNo = loopbackPortNo;
this.loopbackPortNoSet = true;
return this;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public OFBsnVportL2Gre.Builder setLocalMac(MacAddress localMac) {
this.localMac = localMac;
this.localMacSet = true;
return this;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public OFBsnVportL2Gre.Builder setNhMac(MacAddress nhMac) {
this.nhMac = nhMac;
this.nhMacSet = true;
return this;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public OFBsnVportL2Gre.Builder setSrcIp(IPv4Address srcIp) {
this.srcIp = srcIp;
this.srcIpSet = true;
return this;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public OFBsnVportL2Gre.Builder setDstIp(IPv4Address dstIp) {
this.dstIp = dstIp;
this.dstIpSet = true;
return this;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public OFBsnVportL2Gre.Builder setDscp(short dscp) {
this.dscp = dscp;
this.dscpSet = true;
return this;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public OFBsnVportL2Gre.Builder setTtl(short ttl) {
this.ttl = ttl;
this.ttlSet = true;
return this;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public OFBsnVportL2Gre.Builder setVpn(long vpn) {
this.vpn = vpn;
this.vpnSet = true;
return this;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public OFBsnVportL2Gre.Builder setRateLimit(long rateLimit) {
this.rateLimit = rateLimit;
this.rateLimitSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportL2Gre.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 222 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 222 |
BuilderWithParent(OFPortDescVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 789 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 789 |
OFFlowStatsEntryVer11 other = (OFFlowStatsEntryVer11) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if( priority != other.priority)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (instructions == null) {
if (other.instructions != null)
return false;
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + ((instructions == null) ? 0 : instructions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 321 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 321 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 321 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 321 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 321 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
//
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String mfrDesc = this.mfrDescSet ? this.mfrDesc : DEFAULT_MFR_DESC;
if(mfrDesc == null)
throw new NullPointerException("Property mfrDesc must not be null");
String hwDesc = this.hwDescSet ? this.hwDesc : DEFAULT_HW_DESC;
if(hwDesc == null)
throw new NullPointerException("Property hwDesc must not be null");
String swDesc = this.swDescSet ? this.swDesc : DEFAULT_SW_DESC;
if(swDesc == null)
throw new NullPointerException("Property swDesc must not be null");
String serialNum = this.serialNumSet ? this.serialNum : DEFAULT_SERIAL_NUM;
if(serialNum == null)
throw new NullPointerException("Property serialNum must not be null");
String dpDesc = this.dpDescSet ? this.dpDesc : DEFAULT_DP_DESC;
if(dpDesc == null)
throw new NullPointerException("Property dpDesc must not be null");
return new OFDescStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 335 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 335 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFBsnSetLacpRequest.Builder setEnabled(short enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnSetLacpRequest.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
//
@Override
public OFBsnSetLacpRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
short enabled = this.enabledSet ? this.enabled : DEFAULT_ENABLED;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : DEFAULT_ACTOR_SYS_PRIORITY;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : DEFAULT_ACTOR_SYS_MAC;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : DEFAULT_ACTOR_PORT_PRIORITY;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : DEFAULT_ACTOR_PORT_NUM;
int actorKey = this.actorKeySet ? this.actorKey : DEFAULT_ACTOR_KEY;
return new OFBsnSetLacpRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 430 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 430 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 447 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 458 |
private boolean cookieSet;
private U64 cookie;
private boolean packetCountSet;
private U64 packetCount;
private boolean byteCountSet;
private U64 byteCount;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 197 |
BuilderWithParent(OFBsnLacpStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpStatsEntry.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 438 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 438 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 438 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 226 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDesc.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDesc.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 776 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 776 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 776 |
OFFlowRemovedVer12 other = (OFFlowRemovedVer12) obj;
if( xid != other.xid)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if( priority != other.priority)
return false;
if( reason != other.reason)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + priority;
result = prime * result + reason;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 201 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 407 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpStatsEntry.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 407 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 201 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnLacpStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFBsnLacpStatsEntry.Builder setConvergenceStatus(short convergenceStatus) {
this.convergenceStatus = convergenceStatus;
this.convergenceStatusSet = true;
return this;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysPriority(int partnerSysPriority) {
this.partnerSysPriority = partnerSysPriority;
this.partnerSysPrioritySet = true;
return this;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerSysMac(MacAddress partnerSysMac) {
this.partnerSysMac = partnerSysMac;
this.partnerSysMacSet = true;
return this;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortPriority(int partnerPortPriority) {
this.partnerPortPriority = partnerPortPriority;
this.partnerPortPrioritySet = true;
return this;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerPortNum(int partnerPortNum) {
this.partnerPortNum = partnerPortNum;
this.partnerPortNumSet = true;
return this;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFBsnLacpStatsEntry.Builder setPartnerKey(int partnerKey) {
this.partnerKey = partnerKey;
this.partnerKeySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStateSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStateSerializerVer14.java | 34 |
public class OFBsnLacpStateSerializerVer13 {
public final static byte BSN_LACP_STATE_ACTIVITY_VAL = (byte) 0x1;
public final static byte BSN_LACP_STATE_TIMEOUT_VAL = (byte) 0x2;
public final static byte BSN_LACP_STATE_AGGREGATION_VAL = (byte) 0x4;
public final static byte BSN_LACP_STATE_SYNCHRONIZATION_VAL = (byte) 0x8;
public final static byte BSN_LACP_STATE_COLLECTING_VAL = (byte) 0x10;
public final static byte BSN_LACP_STATE_DISTRIBUTING_VAL = (byte) 0x20;
public final static byte BSN_LACP_STATE_DEFAULTED_VAL = (byte) 0x40;
public final static byte BSN_LACP_STATE_EXPIRED_VAL = (byte) 0x80;
public static Set<OFBsnLacpState> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFBsnLacpState> set) {
bb.writeByte(toWireValue(set));
}
public static void putTo(Set<OFBsnLacpState> set, PrimitiveSink sink) {
sink.putByte(toWireValue(set));
}
public static Set<OFBsnLacpState> ofWireValue(byte val) {
EnumSet<OFBsnLacpState> set = EnumSet.noneOf(OFBsnLacpState.class);
if((val & BSN_LACP_STATE_ACTIVITY_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_ACTIVITY);
if((val & BSN_LACP_STATE_TIMEOUT_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_TIMEOUT);
if((val & BSN_LACP_STATE_AGGREGATION_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_AGGREGATION);
if((val & BSN_LACP_STATE_SYNCHRONIZATION_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_SYNCHRONIZATION);
if((val & BSN_LACP_STATE_COLLECTING_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_COLLECTING);
if((val & BSN_LACP_STATE_DISTRIBUTING_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_DISTRIBUTING);
if((val & BSN_LACP_STATE_DEFAULTED_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_DEFAULTED);
if((val & BSN_LACP_STATE_EXPIRED_VAL) != 0)
set.add(OFBsnLacpState.BSN_LACP_STATE_EXPIRED);
return Collections.unmodifiableSet(set);
}
public static byte toWireValue(Set<OFBsnLacpState> set) {
byte wireValue = 0;
for(OFBsnLacpState e: set) {
switch(e) {
case BSN_LACP_STATE_ACTIVITY:
wireValue |= BSN_LACP_STATE_ACTIVITY_VAL;
break;
case BSN_LACP_STATE_TIMEOUT:
wireValue |= BSN_LACP_STATE_TIMEOUT_VAL;
break;
case BSN_LACP_STATE_AGGREGATION:
wireValue |= BSN_LACP_STATE_AGGREGATION_VAL;
break;
case BSN_LACP_STATE_SYNCHRONIZATION:
wireValue |= BSN_LACP_STATE_SYNCHRONIZATION_VAL;
break;
case BSN_LACP_STATE_COLLECTING:
wireValue |= BSN_LACP_STATE_COLLECTING_VAL;
break;
case BSN_LACP_STATE_DISTRIBUTING:
wireValue |= BSN_LACP_STATE_DISTRIBUTING_VAL;
break;
case BSN_LACP_STATE_DEFAULTED:
wireValue |= BSN_LACP_STATE_DEFAULTED_VAL;
break;
case BSN_LACP_STATE_EXPIRED:
wireValue |= BSN_LACP_STATE_EXPIRED_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBsnLacpState in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropOpticalVer14.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropOpticalVer14.java | 377 |
@Override
public int getType() {
return 0x1;
}
@Override
public long getFlags() {
return flags;
}
@Override
public OFPortStatsPropOptical.Builder setFlags(long flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getTxFreqLmda() {
return txFreqLmda;
}
@Override
public OFPortStatsPropOptical.Builder setTxFreqLmda(long txFreqLmda) {
this.txFreqLmda = txFreqLmda;
this.txFreqLmdaSet = true;
return this;
}
@Override
public long getTxOffset() {
return txOffset;
}
@Override
public OFPortStatsPropOptical.Builder setTxOffset(long txOffset) {
this.txOffset = txOffset;
this.txOffsetSet = true;
return this;
}
@Override
public long getTxGridSpan() {
return txGridSpan;
}
@Override
public OFPortStatsPropOptical.Builder setTxGridSpan(long txGridSpan) {
this.txGridSpan = txGridSpan;
this.txGridSpanSet = true;
return this;
}
@Override
public long getRxFreqLmda() {
return rxFreqLmda;
}
@Override
public OFPortStatsPropOptical.Builder setRxFreqLmda(long rxFreqLmda) {
this.rxFreqLmda = rxFreqLmda;
this.rxFreqLmdaSet = true;
return this;
}
@Override
public long getRxOffset() {
return rxOffset;
}
@Override
public OFPortStatsPropOptical.Builder setRxOffset(long rxOffset) {
this.rxOffset = rxOffset;
this.rxOffsetSet = true;
return this;
}
@Override
public long getRxGridSpan() {
return rxGridSpan;
}
@Override
public OFPortStatsPropOptical.Builder setRxGridSpan(long rxGridSpan) {
this.rxGridSpan = rxGridSpan;
this.rxGridSpanSet = true;
return this;
}
@Override
public int getTxPwr() {
return txPwr;
}
@Override
public OFPortStatsPropOptical.Builder setTxPwr(int txPwr) {
this.txPwr = txPwr;
this.txPwrSet = true;
return this;
}
@Override
public int getRxPwr() {
return rxPwr;
}
@Override
public OFPortStatsPropOptical.Builder setRxPwr(int rxPwr) {
this.rxPwr = rxPwr;
this.rxPwrSet = true;
return this;
}
@Override
public int getBiasCurrent() {
return biasCurrent;
}
@Override
public OFPortStatsPropOptical.Builder setBiasCurrent(int biasCurrent) {
this.biasCurrent = biasCurrent;
this.biasCurrentSet = true;
return this;
}
@Override
public int getTemperature() {
return temperature;
}
@Override
public OFPortStatsPropOptical.Builder setTemperature(int temperature) {
this.temperature = temperature;
this.temperatureSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortStatsPropOptical build() {
long flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 648 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 648 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 653 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 653 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 653 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 653 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 653 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 653 |
OFAggregateStatsRequestVer11 other = (OFAggregateStatsRequestVer11) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
if (outGroup == null) {
if (other.outGroup != null)
return false;
} else if (!outGroup.equals(other.outGroup))
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (cookieMask == null) {
if (other.cookieMask != null)
return false;
} else if (!cookieMask.equals(other.cookieMask))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode());
result = prime * result + ((outGroup == null) ? 0 : outGroup.hashCode());
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((cookieMask == null) ? 0 : cookieMask.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 900 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 900 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 900 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 942 |
OFPortStatsEntryVer10 other = (OFPortStatsEntryVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (rxPackets == null) {
if (other.rxPackets != null)
return false;
} else if (!rxPackets.equals(other.rxPackets))
return false;
if (txPackets == null) {
if (other.txPackets != null)
return false;
} else if (!txPackets.equals(other.txPackets))
return false;
if (rxBytes == null) {
if (other.rxBytes != null)
return false;
} else if (!rxBytes.equals(other.rxBytes))
return false;
if (txBytes == null) {
if (other.txBytes != null)
return false;
} else if (!txBytes.equals(other.txBytes))
return false;
if (rxDropped == null) {
if (other.rxDropped != null)
return false;
} else if (!rxDropped.equals(other.rxDropped))
return false;
if (txDropped == null) {
if (other.txDropped != null)
return false;
} else if (!txDropped.equals(other.txDropped))
return false;
if (rxErrors == null) {
if (other.rxErrors != null)
return false;
} else if (!rxErrors.equals(other.rxErrors))
return false;
if (txErrors == null) {
if (other.txErrors != null)
return false;
} else if (!txErrors.equals(other.txErrors))
return false;
if (rxFrameErr == null) {
if (other.rxFrameErr != null)
return false;
} else if (!rxFrameErr.equals(other.rxFrameErr))
return false;
if (rxOverErr == null) {
if (other.rxOverErr != null)
return false;
} else if (!rxOverErr.equals(other.rxOverErr))
return false;
if (rxCrcErr == null) {
if (other.rxCrcErr != null)
return false;
} else if (!rxCrcErr.equals(other.rxCrcErr))
return false;
if (collisions == null) {
if (other.collisions != null)
return false;
} else if (!collisions.equals(other.collisions))
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 844 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 843 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 843 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 843 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 843 |
OFFlowAddVer10 other = (OFFlowAddVer10) obj;
if( xid != other.xid)
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if( priority != other.priority)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (actions == null) {
if (other.actions != null)
return false;
} else if (!actions.equals(other.actions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + priority;
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode());
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((actions == null) ? 0 : actions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 213 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 213 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 222 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 227 |
BuilderWithParent(OFFlowStatsEntryVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/routing/SwitchRoute.java | 578 |
| net/onrc/openvirtex/routing/SwitchRoute.java | 664 |
.setPort(outPort.getPortNo())
.setMaxLen((short) 0xffff)
.build());
if(fm.getCommand().equals(OFFlowModCommand.ADD))
{
fm=OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(fm.getXid(),
fm_match,
fm.getCookie(),
fm.getIdleTimeout(),
fm.getHardTimeout(),
fm.getPriority(),
OFBufferId.NO_BUFFER,
fm.getOutPort(),
fm.getFlags(),
actions);
}
else if(fm.getCommand().equals(OFFlowModCommand.DELETE))
{
fm=OVXFactoryInst.myOVXFactory.buildOVXFlowDelete(fm.getXid(),
fm_match,
fm.getCookie(),
fm.getIdleTimeout(),
fm.getHardTimeout(),
fm.getPriority(),
OFBufferId.NO_BUFFER,
fm.getOutPort(),
fm.getFlags(),
actions);
}
else if(fm.getCommand().equals(OFFlowModCommand.DELETE_STRICT))
{
fm=OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(fm.getXid(),
fm_match,
fm.getCookie(),
fm.getIdleTimeout(),
fm.getHardTimeout(),
fm.getPriority(),
OFBufferId.NO_BUFFER,
fm.getOutPort(),
fm.getFlags(),
actions);
}
else if(fm.getCommand().equals(OFFlowModCommand.MODIFY))
{
fm=OVXFactoryInst.myOVXFactory.buildOVXFlowModify(fm.getXid(),
fm_match,
fm.getCookie(),
fm.getIdleTimeout(),
fm.getHardTimeout(),
fm.getPriority(),
OFBufferId.NO_BUFFER,
fm.getOutPort(),
fm.getFlags(),
actions);
}
else if(fm.getCommand().equals(OFFlowModCommand.MODIFY_STRICT))
{
fm=OVXFactoryInst.myOVXFactory.buildOVXFlowModifyStrict(fm.getXid(),
fm_match,
fm.getCookie(),
fm.getIdleTimeout(),
fm.getHardTimeout(),
fm.getPriority(),
OFBufferId.NO_BUFFER,
fm.getOutPort(),
fm.getFlags(),
actions);
}
phyLink.getSrcPort().getParentSwitch()
.sendMsg(fm, phyLink.getSrcPort().getParentSwitch());
SwitchRoute.log.debug( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 333 |
| net/onrc/openvirtex/messages/actions/ver13/OVXActionOutputVer13.java | 341 |
for (final OVXPort outPort : outPortList) {
/**
* If the outPort belongs to a virtual link, generate a packetIn
* coming from the end point of the link to the controller.
*/
if (outPort.isLink()) {
final OVXPort dstPort = outPort.getLink().getOutLink()
.getDstPort();
dstPort.getParentSwitch().sendMsg(OVXFactoryInst.myOVXFactory.buildOVXPacketIn(match.getPktData(), dstPort.getPortNo().getShortPortNumber()), sw);
/**
* Pravein : Unset the throwException
* Basically, this was not set to false in the original OVX code, not sure why.
* However logically it seems wrong to unset it. Also, connectivity is lost.
*
* Hence, we set it to false.
*/
throwException = false;
this.log.debug(
"Generate a packetIn from OVX Port {}/{}, physicalPort {}/{}",
dstPort.getParentSwitch().getSwitchName(),
dstPort.getPortNo(), dstPort.getPhysicalPort()
.getParentSwitch().getSwitchName(),
dstPort.getPhysicalPortNumber());
} else if (sw instanceof OVXBigSwitch) {
/**
* Big-switch management. Generate a packetOut to the
* physical outPort
*/
// Only generate pkt_out if a route is configured between in
// and output port.
// If parent switches are identical, no route will be configured
// although we do want to output the pkt_out.
if ((inPort == null)
|| (inPort.getParentSwitch() == outPort.getParentSwitch())
|| (((OVXBigSwitch) sw).getRoute(inPort, outPort) != null)) {
final PhysicalPort dstPort = outPort.getPhysicalPort();
dstPort.getParentSwitch().sendMsg(OVXFactoryInst.myOVXFactory
.buildOVXPacketOut(match.getPktData(),OFPort.ANY,
dstPort.getPortNo()), sw);
this.log.debug("PacketOut for a bigSwitch port, "
+ "generate a packet from Physical Port {}/{}",
dstPort.getParentSwitch().getSwitchName(),
dstPort.getPortNo());
}
} else {
/**
* Else (e.g. the outPort is an edgePort in a single switch)
* modify the packet and send to the physical switch.
*/
throwException = false;
if (GlobalConfig.bnvTagType == TAG.TOS) {
TenantMapperTos.prependUnRewriteActions(match, approvedActions);
} else if (GlobalConfig.bnvTagType == TAG.VLAN) {
TenantMapperVlan.prependUnRewriteActions(match, approvedActions);
} else if (GlobalConfig.bnvTagType == TAG.IP) {
approvedActions.addAll(IPMapper.prependUnRewriteActions(match));
} else if (GlobalConfig.bnvTagType == TAG.NOTAG){
/* Do Nothing */
}
approvedActions.add(OVXFactoryInst.myFactory.actions()
.output(OFPort.ofShort(outPort.getPhysicalPortNumber()), 0)
);
this.log.debug(
"Physical ports are on the same physical switch, rewrite only outPort to {}",
outPort.getPhysicalPortNumber());
}
}
if (throwException) {
throw new DroppedMessageException();
}
}
}
private LinkedList<OVXPort> fillPortList(final Short inPort,
final Short outPort, final OVXSwitch sw)
throws DroppedMessageException {
;
final short OFPP_ALL_SHORT = (short) 0xFFfc;
final short OFPP_FLOOD_SHORT = (short) 0xFFfb;
final short OFPP_MAX_SHORT = (short) 0xFF00; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 217 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 441 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 469 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 441 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 217 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 231 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public OFFlowStatsEntry.Builder setInstructions(List<OFInstruction> instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 165 |
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 324 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public Match getMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.0");
}
@Override
public OFPacketIn.Builder setMatch(Match match) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.0");
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketIn.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public OFPort getInPhyPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.0");
}
@Override
public OFPacketIn.Builder setInPhyPort(OFPort inPhyPort) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.0");
}
@Override
public U64 getCookie()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public OFPacketIn.Builder setCookie(U64 cookie) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 173 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 340 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFPacketIn.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPort not supported in version 1.2");
}
@Override
public OFPacketIn.Builder setInPort(OFPort inPort) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPort not supported in version 1.2");
}
@Override
public OFPort getInPhyPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.2");
}
@Override
public OFPacketIn.Builder setInPhyPort(OFPort inPhyPort) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.2");
}
@Override
public U64 getCookie()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.2");
}
@Override
public OFPacketIn.Builder setCookie(U64 cookie) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.2");
}
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 181 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 356 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.1");
}
@Override
public OFPacketIn.Builder setMatch(Match match) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property match not supported in version 1.1");
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketIn.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public OFPort getInPhyPort() {
return inPhyPort;
}
@Override
public OFPacketIn.Builder setInPhyPort(OFPort inPhyPort) {
this.inPhyPort = inPhyPort;
this.inPhyPortSet = true;
return this;
}
@Override
public U64 getCookie()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.1");
}
@Override
public OFPacketIn.Builder setCookie(U64 cookie) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.1");
}
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 356 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFPacketIn.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPort not supported in version 1.4");
}
@Override
public OFPacketIn.Builder setInPort(OFPort inPort) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPort not supported in version 1.4");
}
@Override
public OFPort getInPhyPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.4");
}
@Override
public OFPacketIn.Builder setInPhyPort(OFPort inPhyPort) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.4");
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFPacketIn.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionTypeSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionTypeSerializerVer14.java | 34 |
public class OFInstructionTypeSerializerVer13 {
public final static short GOTO_TABLE_VAL = (short) 0x1;
public final static short WRITE_METADATA_VAL = (short) 0x2;
public final static short WRITE_ACTIONS_VAL = (short) 0x3;
public final static short APPLY_ACTIONS_VAL = (short) 0x4;
public final static short CLEAR_ACTIONS_VAL = (short) 0x5;
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public final static short METER_VAL = (short) 0x6;
public static Set<OFInstructionType> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFInstructionType> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFInstructionType> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFInstructionType> ofWireValue(short val) {
EnumSet<OFInstructionType> set = EnumSet.noneOf(OFInstructionType.class);
if((val & GOTO_TABLE_VAL) != 0)
set.add(OFInstructionType.GOTO_TABLE);
if((val & WRITE_METADATA_VAL) != 0)
set.add(OFInstructionType.WRITE_METADATA);
if((val & WRITE_ACTIONS_VAL) != 0)
set.add(OFInstructionType.WRITE_ACTIONS);
if((val & APPLY_ACTIONS_VAL) != 0)
set.add(OFInstructionType.APPLY_ACTIONS);
if((val & CLEAR_ACTIONS_VAL) != 0)
set.add(OFInstructionType.CLEAR_ACTIONS);
if((val & EXPERIMENTER_VAL) != 0)
set.add(OFInstructionType.EXPERIMENTER);
if((val & METER_VAL) != 0)
set.add(OFInstructionType.METER);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFInstructionType> set) {
short wireValue = 0;
for(OFInstructionType e: set) {
switch(e) {
case GOTO_TABLE:
wireValue |= GOTO_TABLE_VAL;
break;
case WRITE_METADATA:
wireValue |= WRITE_METADATA_VAL;
break;
case WRITE_ACTIONS:
wireValue |= WRITE_ACTIONS_VAL;
break;
case APPLY_ACTIONS:
wireValue |= APPLY_ACTIONS_VAL;
break;
case CLEAR_ACTIONS:
wireValue |= CLEAR_ACTIONS_VAL;
break;
case EXPERIMENTER:
wireValue |= EXPERIMENTER_VAL;
break;
case METER:
wireValue |= METER_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFInstructionType in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortFeaturesSerializerVer11.java | 53 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortFeaturesSerializerVer12.java | 53 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortFeaturesSerializerVer13.java | 54 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortFeaturesSerializerVer14.java | 54 |
public static Set<OFPortFeatures> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortFeatures> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortFeatures> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortFeatures> ofWireValue(int val) {
EnumSet<OFPortFeatures> set = EnumSet.noneOf(OFPortFeatures.class);
if((val & PF_10MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_HD);
if((val & PF_10MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_FD);
if((val & PF_100MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_HD);
if((val & PF_100MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_FD);
if((val & PF_1GB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_HD);
if((val & PF_1GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_FD);
if((val & PF_10GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10GB_FD);
if((val & PF_COPPER_VAL) != 0)
set.add(OFPortFeatures.PF_COPPER);
if((val & PF_FIBER_VAL) != 0)
set.add(OFPortFeatures.PF_FIBER);
if((val & PF_AUTONEG_VAL) != 0)
set.add(OFPortFeatures.PF_AUTONEG);
if((val & PF_PAUSE_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE);
if((val & PF_PAUSE_ASYM_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE_ASYM);
if((val & PF_40GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_40GB_FD);
if((val & PF_100GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100GB_FD);
if((val & PF_1TB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1TB_FD);
if((val & PF_OTHER_VAL) != 0)
set.add(OFPortFeatures.PF_OTHER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortStatusVer13.java | 194 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortStatusVer13.java | 378 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCircuitPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x748771L;
}
@Override
public long getExpType() {
return 0xcL;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFCircuitPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFCircuitPortStatus.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getLengths() {
return lengths;
}
@Override
public OFCircuitPortStatus.Builder setLengths(int lengths) {
this.lengths = lengths;
this.lengthsSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFCircuitPortStatus.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFCircuitPortStatus.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFCircuitPortStatus.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFCircuitPortStatus.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public U64 getIgnore() {
return ignore;
}
@Override
public OFCircuitPortStatus.Builder setIgnore(U64 ignore) {
this.ignore = ignore;
this.ignoreSet = true;
return this;
}
@Override
public OFCircuitPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 172 |
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 328 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property reserved not supported in version 1.0");
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property reserved not supported in version 1.0");
}
@Override
public List<OFPortDesc> getPorts() {
return ports;
}
@Override
public OFFeaturesReply.Builder setPorts(List<OFPortDesc> ports) {
this.ports = ports;
this.portsSet = true;
return this;
}
@Override
public Set<OFActionType> getActions() {
return actions;
}
@Override
public OFFeaturesReply.Builder setActions(Set<OFActionType> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.0");
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.0");
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 169 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 323 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts() {
return ports;
}
@Override
public OFFeaturesReply.Builder setPorts(List<OFPortDesc> ports) {
this.ports = ports;
this.portsSet = true;
return this;
}
@Override
public Set<OFActionType> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFFeaturesReply.Builder setActions(Set<OFActionType> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public OFAuxId getAuxiliaryId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.1");
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.1");
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 169 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 323 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts() {
return ports;
}
@Override
public OFFeaturesReply.Builder setPorts(List<OFPortDesc> ports) {
this.ports = ports;
this.portsSet = true;
return this;
}
@Override
public Set<OFActionType> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFFeaturesReply.Builder setActions(Set<OFActionType> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public OFAuxId getAuxiliaryId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.2");
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.2");
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 300 |
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 300 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 445 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 300 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 443 |
return new OFMatchV3Ver12(
oxmList
);
}
private OFOxmList.Builder oxmListBuilder;
private void initBuilder() {
if (oxmListBuilder != null)
return;
oxmListBuilder = new OFOxmList.Builder();
}
private void updateOxmList() {
this.oxmList = this.oxmListBuilder.build();
this.oxmListSet = true;
}
private <F extends OFValueType<F>> OFOxm<F> getOxm(MatchField<F> field) {
return this.oxmListSet ? this.oxmList.get(field) : null;
}
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null)
return null;
return value.getValue();
}
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
OFOxm<F> value = getOxm(field);
if (value == null || !value.isMasked())
return null;
// TODO: If changing OXMs to extend Masked, then use it here
return Masked.of(value.getValue(), value.getMask());
}
@Override
public boolean supports(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean supportsMasked(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean isExact(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && !value.isMasked());
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value == null);
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
OFOxm<?> value = getOxm(field);
return (value != null && value.isMasked());
}
@Override
public <F extends OFValueType<F>> Match.Builder setExact(
MatchField<F> field, F value) {
initBuilder();
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_12).oxms().fromValue(value, field); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionTypeSerializerVer14.java | 30 |
public class OFActionTypeSerializerVer13 {
public final static short OUTPUT_VAL = (short) 0x0;
public final static short COPY_TTL_OUT_VAL = (short) 0xb;
public final static short COPY_TTL_IN_VAL = (short) 0xc;
public final static short SET_MPLS_TTL_VAL = (short) 0xf;
public final static short DEC_MPLS_TTL_VAL = (short) 0x10;
public final static short PUSH_VLAN_VAL = (short) 0x11;
public final static short POP_VLAN_VAL = (short) 0x12;
public final static short PUSH_MPLS_VAL = (short) 0x13;
public final static short POP_MPLS_VAL = (short) 0x14;
public final static short SET_QUEUE_VAL = (short) 0x15;
public final static short GROUP_VAL = (short) 0x16;
public final static short SET_NW_TTL_VAL = (short) 0x17;
public final static short DEC_NW_TTL_VAL = (short) 0x18;
public final static short SET_FIELD_VAL = (short) 0x19;
public final static short PUSH_PBB_VAL = (short) 0x1a;
public final static short POP_PBB_VAL = (short) 0x1b;
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFActionType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFActionType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFActionType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFActionType ofWireValue(short val) {
switch(val) {
case OUTPUT_VAL:
return OFActionType.OUTPUT;
case COPY_TTL_OUT_VAL:
return OFActionType.COPY_TTL_OUT;
case COPY_TTL_IN_VAL:
return OFActionType.COPY_TTL_IN;
case SET_MPLS_TTL_VAL:
return OFActionType.SET_MPLS_TTL;
case DEC_MPLS_TTL_VAL:
return OFActionType.DEC_MPLS_TTL;
case PUSH_VLAN_VAL:
return OFActionType.PUSH_VLAN;
case POP_VLAN_VAL:
return OFActionType.POP_VLAN;
case PUSH_MPLS_VAL:
return OFActionType.PUSH_MPLS;
case POP_MPLS_VAL:
return OFActionType.POP_MPLS;
case SET_QUEUE_VAL:
return OFActionType.SET_QUEUE;
case GROUP_VAL:
return OFActionType.GROUP;
case SET_NW_TTL_VAL:
return OFActionType.SET_NW_TTL;
case DEC_NW_TTL_VAL:
return OFActionType.DEC_NW_TTL;
case SET_FIELD_VAL:
return OFActionType.SET_FIELD;
case PUSH_PBB_VAL:
return OFActionType.PUSH_PBB;
case POP_PBB_VAL:
return OFActionType.POP_PBB;
case EXPERIMENTER_VAL:
return OFActionType.EXPERIMENTER;
default:
throw new IllegalArgumentException("Illegal wire value for type OFActionType in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 168 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 322 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property ports not supported in version 1.3");
}
@Override
public OFFeaturesReply.Builder setPorts(List<OFPortDesc> ports) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property ports not supported in version 1.3");
}
@Override
public Set<OFActionType> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.3");
}
@Override
public OFFeaturesReply.Builder setActions(Set<OFActionType> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.3");
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 168 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 322 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property ports not supported in version 1.4");
}
@Override
public OFFeaturesReply.Builder setPorts(List<OFPortDesc> ports) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property ports not supported in version 1.4");
}
@Override
public Set<OFActionType> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFFeaturesReply.Builder setActions(Set<OFActionType> actions) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 772 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 772 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 772 |
OFGroupFeaturesStatsReplyVer12 other = (OFGroupFeaturesStatsReplyVer12) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if( types != other.types)
return false;
if( capabilities != other.capabilities)
return false;
if( maxGroupsAll != other.maxGroupsAll)
return false;
if( maxGroupsSelect != other.maxGroupsSelect)
return false;
if( maxGroupsIndirect != other.maxGroupsIndirect)
return false;
if( maxGroupsFf != other.maxGroupsFf)
return false;
if( actionsAll != other.actionsAll)
return false;
if( actionsSelect != other.actionsSelect)
return false;
if( actionsIndirect != other.actionsIndirect)
return false;
if( actionsFf != other.actionsFf)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * (int) (types ^ (types >>> 32));
result = prime * (int) (capabilities ^ (capabilities >>> 32));
result = prime * (int) (maxGroupsAll ^ (maxGroupsAll >>> 32));
result = prime * (int) (maxGroupsSelect ^ (maxGroupsSelect >>> 32));
result = prime * (int) (maxGroupsIndirect ^ (maxGroupsIndirect >>> 32));
result = prime * (int) (maxGroupsFf ^ (maxGroupsFf >>> 32));
result = prime * (int) (actionsAll ^ (actionsAll >>> 32));
result = prime * (int) (actionsSelect ^ (actionsSelect >>> 32));
result = prime * (int) (actionsIndirect ^ (actionsIndirect >>> 32));
result = prime * (int) (actionsFf ^ (actionsFf >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFCapabilitiesSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFCapabilitiesSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFCapabilitiesSerializerVer14.java | 34 |
public class OFCapabilitiesSerializerVer12 {
public final static int FLOW_STATS_VAL = 0x1;
public final static int TABLE_STATS_VAL = 0x2;
public final static int PORT_STATS_VAL = 0x4;
public final static int IP_REASM_VAL = 0x20;
public final static int QUEUE_STATS_VAL = 0x40;
public final static int GROUP_STATS_VAL = 0x8;
public final static int PORT_BLOCKED_VAL = 0x100;
public static Set<OFCapabilities> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFCapabilities> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFCapabilities> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFCapabilities> ofWireValue(int val) {
EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);
if((val & FLOW_STATS_VAL) != 0)
set.add(OFCapabilities.FLOW_STATS);
if((val & TABLE_STATS_VAL) != 0)
set.add(OFCapabilities.TABLE_STATS);
if((val & PORT_STATS_VAL) != 0)
set.add(OFCapabilities.PORT_STATS);
if((val & IP_REASM_VAL) != 0)
set.add(OFCapabilities.IP_REASM);
if((val & QUEUE_STATS_VAL) != 0)
set.add(OFCapabilities.QUEUE_STATS);
if((val & GROUP_STATS_VAL) != 0)
set.add(OFCapabilities.GROUP_STATS);
if((val & PORT_BLOCKED_VAL) != 0)
set.add(OFCapabilities.PORT_BLOCKED);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFCapabilities> set) {
int wireValue = 0;
for(OFCapabilities e: set) {
switch(e) {
case FLOW_STATS:
wireValue |= FLOW_STATS_VAL;
break;
case TABLE_STATS:
wireValue |= TABLE_STATS_VAL;
break;
case PORT_STATS:
wireValue |= PORT_STATS_VAL;
break;
case IP_REASM:
wireValue |= IP_REASM_VAL;
break;
case QUEUE_STATS:
wireValue |= QUEUE_STATS_VAL;
break;
case GROUP_STATS:
wireValue |= GROUP_STATS_VAL;
break;
case PORT_BLOCKED:
wireValue |= PORT_BLOCKED_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFCapabilities in version 1.2: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 213 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 213 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 213 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 222 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 227 |
BuilderWithParent(OFFlowStatsEntryVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 582 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 587 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 587 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 587 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 587 |
OFDescStatsReplyVer10 other = (OFDescStatsReplyVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (mfrDesc == null) {
if (other.mfrDesc != null)
return false;
} else if (!mfrDesc.equals(other.mfrDesc))
return false;
if (hwDesc == null) {
if (other.hwDesc != null)
return false;
} else if (!hwDesc.equals(other.hwDesc))
return false;
if (swDesc == null) {
if (other.swDesc != null)
return false;
} else if (!swDesc.equals(other.swDesc))
return false;
if (serialNum == null) {
if (other.serialNum != null)
return false;
} else if (!serialNum.equals(other.serialNum))
return false;
if (dpDesc == null) {
if (other.dpDesc != null)
return false;
} else if (!dpDesc.equals(other.dpDesc))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((mfrDesc == null) ? 0 : mfrDesc.hashCode());
result = prime * result + ((hwDesc == null) ? 0 : hwDesc.hashCode());
result = prime * result + ((swDesc == null) ? 0 : swDesc.hashCode());
result = prime * result + ((serialNum == null) ? 0 : serialNum.hashCode());
result = prime * result + ((dpDesc == null) ? 0 : dpDesc.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 212 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 222 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 222 |
BuilderWithParent(OFPortDescVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionCodeSerializerVer14.java | 30 |
public class OFBadActionCodeSerializerVer12 {
public final static short BAD_TYPE_VAL = (short) 0x0;
public final static short BAD_LEN_VAL = (short) 0x1;
public final static short BAD_EXPERIMENTER_VAL = (short) 0x2;
public final static short BAD_EXPERIMENTER_TYPE_VAL = (short) 0x3;
public final static short BAD_OUT_PORT_VAL = (short) 0x4;
public final static short BAD_ARGUMENT_VAL = (short) 0x5;
public final static short EPERM_VAL = (short) 0x6;
public final static short TOO_MANY_VAL = (short) 0x7;
public final static short BAD_QUEUE_VAL = (short) 0x8;
public final static short BAD_OUT_GROUP_VAL = (short) 0x9;
public final static short MATCH_INCONSISTENT_VAL = (short) 0xa;
public final static short UNSUPPORTED_ORDER_VAL = (short) 0xb;
public final static short BAD_TAG_VAL = (short) 0xc;
public final static short BAD_SET_TYPE_VAL = (short) 0xd;
public final static short BAD_SET_LEN_VAL = (short) 0xe;
public final static short BAD_SET_ARGUMENT_VAL = (short) 0xf;
public static OFBadActionCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadActionCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadActionCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadActionCode ofWireValue(short val) {
switch(val) {
case BAD_TYPE_VAL:
return OFBadActionCode.BAD_TYPE;
case BAD_LEN_VAL:
return OFBadActionCode.BAD_LEN;
case BAD_EXPERIMENTER_VAL:
return OFBadActionCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadActionCode.BAD_EXPERIMENTER_TYPE;
case BAD_OUT_PORT_VAL:
return OFBadActionCode.BAD_OUT_PORT;
case BAD_ARGUMENT_VAL:
return OFBadActionCode.BAD_ARGUMENT;
case EPERM_VAL:
return OFBadActionCode.EPERM;
case TOO_MANY_VAL:
return OFBadActionCode.TOO_MANY;
case BAD_QUEUE_VAL:
return OFBadActionCode.BAD_QUEUE;
case BAD_OUT_GROUP_VAL:
return OFBadActionCode.BAD_OUT_GROUP;
case MATCH_INCONSISTENT_VAL:
return OFBadActionCode.MATCH_INCONSISTENT;
case UNSUPPORTED_ORDER_VAL:
return OFBadActionCode.UNSUPPORTED_ORDER;
case BAD_TAG_VAL:
return OFBadActionCode.BAD_TAG;
case BAD_SET_TYPE_VAL:
return OFBadActionCode.BAD_SET_TYPE;
case BAD_SET_LEN_VAL:
return OFBadActionCode.BAD_SET_LEN;
case BAD_SET_ARGUMENT_VAL:
return OFBadActionCode.BAD_SET_ARGUMENT;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBadActionCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 188 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 358 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCalientFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFCalientFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x80f958L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFCalientFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getOutPort() {
return outPort;
}
@Override
public OFCalientFlowStatsRequest.Builder setOutPort(long outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public long getOutGroup() {
return outGroup;
}
@Override
public OFCalientFlowStatsRequest.Builder setOutGroup(long outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFCalientFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFCalientFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFCalientFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFCalientFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 217 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 441 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 441 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 469 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 441 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 217 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 217 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 231 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowStatsEntry.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowStatsEntry.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowStatsEntry.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsEntry.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsEntry.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionTypeSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionTypeSerializerVer12.java | 34 |
public class OFInstructionTypeSerializerVer11 {
public final static short GOTO_TABLE_VAL = (short) 0x1;
public final static short WRITE_METADATA_VAL = (short) 0x2;
public final static short WRITE_ACTIONS_VAL = (short) 0x3;
public final static short APPLY_ACTIONS_VAL = (short) 0x4;
public final static short CLEAR_ACTIONS_VAL = (short) 0x5;
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static Set<OFInstructionType> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFInstructionType> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFInstructionType> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFInstructionType> ofWireValue(short val) {
EnumSet<OFInstructionType> set = EnumSet.noneOf(OFInstructionType.class);
if((val & GOTO_TABLE_VAL) != 0)
set.add(OFInstructionType.GOTO_TABLE);
if((val & WRITE_METADATA_VAL) != 0)
set.add(OFInstructionType.WRITE_METADATA);
if((val & WRITE_ACTIONS_VAL) != 0)
set.add(OFInstructionType.WRITE_ACTIONS);
if((val & APPLY_ACTIONS_VAL) != 0)
set.add(OFInstructionType.APPLY_ACTIONS);
if((val & CLEAR_ACTIONS_VAL) != 0)
set.add(OFInstructionType.CLEAR_ACTIONS);
if((val & EXPERIMENTER_VAL) != 0)
set.add(OFInstructionType.EXPERIMENTER);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFInstructionType> set) {
short wireValue = 0;
for(OFInstructionType e: set) {
switch(e) {
case GOTO_TABLE:
wireValue |= GOTO_TABLE_VAL;
break;
case WRITE_METADATA:
wireValue |= WRITE_METADATA_VAL;
break;
case WRITE_ACTIONS:
wireValue |= WRITE_ACTIONS_VAL;
break;
case APPLY_ACTIONS:
wireValue |= APPLY_ACTIONS_VAL;
break;
case CLEAR_ACTIONS:
wireValue |= CLEAR_ACTIONS_VAL;
break;
case EXPERIMENTER:
wireValue |= EXPERIMENTER_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFInstructionType in version 1.1: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFlagsSerializerVer14.java | 34 |
public class OFFlowModFlagsSerializerVer13 {
public final static short SEND_FLOW_REM_VAL = (short) 0x1;
public final static short CHECK_OVERLAP_VAL = (short) 0x2;
public final static short RESET_COUNTS_VAL = (short) 0x4;
public final static short NO_PKT_COUNTS_VAL = (short) 0x8;
public final static short NO_BYT_COUNTS_VAL = (short) 0x10;
public final static short BSN_SEND_IDLE_VAL = (short) 0x80;
public static Set<OFFlowModFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFFlowModFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFFlowModFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFFlowModFlags> ofWireValue(short val) {
EnumSet<OFFlowModFlags> set = EnumSet.noneOf(OFFlowModFlags.class);
if((val & SEND_FLOW_REM_VAL) != 0)
set.add(OFFlowModFlags.SEND_FLOW_REM);
if((val & CHECK_OVERLAP_VAL) != 0)
set.add(OFFlowModFlags.CHECK_OVERLAP);
if((val & RESET_COUNTS_VAL) != 0)
set.add(OFFlowModFlags.RESET_COUNTS);
if((val & NO_PKT_COUNTS_VAL) != 0)
set.add(OFFlowModFlags.NO_PKT_COUNTS);
if((val & NO_BYT_COUNTS_VAL) != 0)
set.add(OFFlowModFlags.NO_BYT_COUNTS);
if((val & BSN_SEND_IDLE_VAL) != 0)
set.add(OFFlowModFlags.BSN_SEND_IDLE);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFFlowModFlags> set) {
short wireValue = 0;
for(OFFlowModFlags e: set) {
switch(e) {
case SEND_FLOW_REM:
wireValue |= SEND_FLOW_REM_VAL;
break;
case CHECK_OVERLAP:
wireValue |= CHECK_OVERLAP_VAL;
break;
case RESET_COUNTS:
wireValue |= RESET_COUNTS_VAL;
break;
case NO_PKT_COUNTS:
wireValue |= NO_PKT_COUNTS_VAL;
break;
case NO_BYT_COUNTS:
wireValue |= NO_BYT_COUNTS_VAL;
break;
case BSN_SEND_IDLE:
wireValue |= BSN_SEND_IDLE_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFFlowModFlags in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 852 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 852 |
OFBsnLacpConvergenceNotifVer13 other = (OFBsnLacpConvergenceNotifVer13) obj;
if( xid != other.xid)
return false;
if( convergenceStatus != other.convergenceStatus)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( actorSysPriority != other.actorSysPriority)
return false;
if (actorSysMac == null) {
if (other.actorSysMac != null)
return false;
} else if (!actorSysMac.equals(other.actorSysMac))
return false;
if( actorPortPriority != other.actorPortPriority)
return false;
if( actorPortNum != other.actorPortNum)
return false;
if( actorKey != other.actorKey)
return false;
if( partnerSysPriority != other.partnerSysPriority)
return false;
if (partnerSysMac == null) {
if (other.partnerSysMac != null)
return false;
} else if (!partnerSysMac.equals(other.partnerSysMac))
return false;
if( partnerPortPriority != other.partnerPortPriority)
return false;
if( partnerPortNum != other.partnerPortNum)
return false;
if( partnerKey != other.partnerKey)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + convergenceStatus;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + actorSysPriority;
result = prime * result + ((actorSysMac == null) ? 0 : actorSysMac.hashCode());
result = prime * result + actorPortPriority;
result = prime * result + actorPortNum;
result = prime * result + actorKey;
result = prime * result + partnerSysPriority;
result = prime * result + ((partnerSysMac == null) ? 0 : partnerSysMac.hashCode());
result = prime * result + partnerPortPriority;
result = prime * result + partnerPortNum;
result = prime * result + partnerKey;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 655 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 655 |
OFPacketInVer13 other = (OFPacketInVer13) obj;
if( xid != other.xid)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if( totalLen != other.totalLen)
return false;
if (reason == null) {
if (other.reason != null)
return false;
} else if (!reason.equals(other.reason))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + totalLen;
result = prime * result + ((reason == null) ? 0 : reason.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + Arrays.hashCode(data);
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 216 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 438 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 438 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 438 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 416 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 226 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public OFPortDesc.Builder setCurr(Set<OFPortFeatures> curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public OFPortDesc.Builder setAdvertised(Set<OFPortFeatures> advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public OFPortDesc.Builder setSupported(Set<OFPortFeatures> supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public OFPortDesc.Builder setPeer(Set<OFPortFeatures> peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 95 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 95 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 95 |
throw new UnsupportedOperationException("OFMatchV3Ver12 does not support masked matching on field " + field.getName());
OFOxm<F> oxm = this.oxmList.get(field);
if (oxm == null || !field.arePrerequisitesOK(this))
return null;
if (oxm.getMask() == null)
return null;
// TODO: Make OfOxm extend Masked and just return the OXM?
return Masked.of(oxm.getValue(), oxm.getMask());
}
private static boolean supportsField(MatchField<?> field) {
switch (field.id) {
case ARP_OP:
case ARP_SHA:
case ARP_SPA:
case ARP_THA:
case ARP_TPA:
case BSN_EGR_PORT_GROUP_ID:
case BSN_GLOBAL_VRF_ALLOWED:
case BSN_INGRESS_PORT_GROUP_ID:
case BSN_INNER_ETH_DST:
case BSN_INNER_ETH_SRC:
case BSN_IN_PORTS_128:
case BSN_IN_PORTS_512:
case BSN_L2_CACHE_HIT:
case BSN_L3_DST_CLASS_ID:
case BSN_L3_INTERFACE_CLASS_ID:
case BSN_L3_SRC_CLASS_ID:
case BSN_LAG_ID:
case BSN_TCP_FLAGS:
case BSN_UDF0:
case BSN_UDF1:
case BSN_UDF2:
case BSN_UDF3:
case BSN_UDF4:
case BSN_UDF5:
case BSN_UDF6:
case BSN_UDF7:
case BSN_VLAN_XLATE_PORT_GROUP_ID:
case BSN_VRF:
case BSN_VXLAN_NETWORK_ID:
case ETH_DST:
case ETH_SRC:
case ETH_TYPE:
case ICMPV4_CODE:
case ICMPV4_TYPE:
case ICMPV6_CODE:
case ICMPV6_TYPE:
case IN_PHY_PORT:
case IN_PORT:
case IPV4_DST:
case IPV4_SRC:
case IPV6_DST:
case IPV6_EXTHDR:
case IPV6_FLABEL:
case IPV6_ND_SLL:
case IPV6_ND_TARGET:
case IPV6_ND_TLL:
case IPV6_SRC:
case IP_DSCP:
case IP_ECN:
case IP_PROTO:
case METADATA:
case MPLS_BOS:
case MPLS_LABEL:
case MPLS_TC:
case OCH_SIGID:
case OCH_SIGID_BASIC:
case OCH_SIGTYPE:
case OCH_SIGTYPE_BASIC:
case PBB_UCA:
case SCTP_DST:
case SCTP_SRC:
case TCP_DST:
case TCP_SRC:
case TUNNEL_ID:
case TUNNEL_IPV4_DST:
case TUNNEL_IPV4_SRC:
case UDP_DST:
case UDP_SRC:
case VLAN_PCP:
case VLAN_VID:
return true;
default:
return false;
}
}
@Override
public boolean supports(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean supportsMasked(MatchField<?> field) {
return supportsField(field);
}
@Override
public boolean isExact(MatchField<?> field) {
if (!supports(field))
throw new UnsupportedOperationException("OFMatchV3Ver12 does not support matching on field " + field.getName()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropOpticalVer14.java | 167 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropOpticalVer14.java | 327 |
@Override
public int getType() {
return 0x1;
}
@Override
public long getSupported() {
return supported;
}
@Override
public OFPortDescPropOptical.Builder setSupported(long supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public long getTxMinFreqLmda() {
return txMinFreqLmda;
}
@Override
public OFPortDescPropOptical.Builder setTxMinFreqLmda(long txMinFreqLmda) {
this.txMinFreqLmda = txMinFreqLmda;
this.txMinFreqLmdaSet = true;
return this;
}
@Override
public long getTxMaxFreqLmda() {
return txMaxFreqLmda;
}
@Override
public OFPortDescPropOptical.Builder setTxMaxFreqLmda(long txMaxFreqLmda) {
this.txMaxFreqLmda = txMaxFreqLmda;
this.txMaxFreqLmdaSet = true;
return this;
}
@Override
public long getTxGridFreqLmda() {
return txGridFreqLmda;
}
@Override
public OFPortDescPropOptical.Builder setTxGridFreqLmda(long txGridFreqLmda) {
this.txGridFreqLmda = txGridFreqLmda;
this.txGridFreqLmdaSet = true;
return this;
}
@Override
public long getRxMinFreqLmda() {
return rxMinFreqLmda;
}
@Override
public OFPortDescPropOptical.Builder setRxMinFreqLmda(long rxMinFreqLmda) {
this.rxMinFreqLmda = rxMinFreqLmda;
this.rxMinFreqLmdaSet = true;
return this;
}
@Override
public long getRxMaxFreqLmda() {
return rxMaxFreqLmda;
}
@Override
public OFPortDescPropOptical.Builder setRxMaxFreqLmda(long rxMaxFreqLmda) {
this.rxMaxFreqLmda = rxMaxFreqLmda;
this.rxMaxFreqLmdaSet = true;
return this;
}
@Override
public long getRxGridFreqLmda() {
return rxGridFreqLmda;
}
@Override
public OFPortDescPropOptical.Builder setRxGridFreqLmda(long rxGridFreqLmda) {
this.rxGridFreqLmda = rxGridFreqLmda;
this.rxGridFreqLmdaSet = true;
return this;
}
@Override
public long getTxPwrMin() {
return txPwrMin;
}
@Override
public OFPortDescPropOptical.Builder setTxPwrMin(long txPwrMin) {
this.txPwrMin = txPwrMin;
this.txPwrMinSet = true;
return this;
}
@Override
public long getTxPwrMax() {
return txPwrMax;
}
@Override
public OFPortDescPropOptical.Builder setTxPwrMax(long txPwrMax) {
this.txPwrMax = txPwrMax;
this.txPwrMaxSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortDescPropOptical build() {
long supported = this.supportedSet ? this.supported : parentMessage.supported; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 153 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : parentMessage.checksumMask;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
//
return new OFBsnGentableEntryDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 153 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : parentMessage.checksumMask;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
//
return new OFBsnGentableEntryStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 149 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 149 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryAdd.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryAdd.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryAdd.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryAdd.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBsnGentableEntryAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
List<OFBsnTlv> key = this.keySet ? this.key : parentMessage.key;
if(key == null)
throw new NullPointerException("Property key must not be null");
List<OFBsnTlv> value = this.valueSet ? this.value : parentMessage.value;
if(value == null)
throw new NullPointerException("Property value must not be null");
//
return new OFBsnGentableEntryAddVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 160 |
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 300 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public U64 getCookie()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 153 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 153 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 153 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
boolean enabled = this.enabledSet ? this.enabled : parentMessage.enabled;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
//
return new OFBsnSetPktinSuppressionRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 160 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 300 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public U64 getCookie()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedCodeSerializerVer14.java | 30 |
public class OFGroupModFailedCodeSerializerVer12 {
public final static short GROUP_EXISTS_VAL = (short) 0x0;
public final static short INVALID_GROUP_VAL = (short) 0x1;
public final static short WEIGHT_UNSUPPORTED_VAL = (short) 0x2;
public final static short OUT_OF_GROUPS_VAL = (short) 0x3;
public final static short OUT_OF_BUCKETS_VAL = (short) 0x4;
public final static short CHAINING_UNSUPPORTED_VAL = (short) 0x5;
public final static short WATCH_UNSUPPORTED_VAL = (short) 0x6;
public final static short LOOP_VAL = (short) 0x7;
public final static short UNKNOWN_GROUP_VAL = (short) 0x8;
public final static short CHAINED_GROUP_VAL = (short) 0x9;
public final static short BAD_TYPE_VAL = (short) 0xa;
public final static short BAD_COMMAND_VAL = (short) 0xb;
public final static short BAD_BUCKET_VAL = (short) 0xc;
public final static short BAD_WATCH_VAL = (short) 0xd;
public final static short EPERM_VAL = (short) 0xe;
public static OFGroupModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFGroupModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFGroupModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFGroupModFailedCode ofWireValue(short val) {
switch(val) {
case GROUP_EXISTS_VAL:
return OFGroupModFailedCode.GROUP_EXISTS;
case INVALID_GROUP_VAL:
return OFGroupModFailedCode.INVALID_GROUP;
case WEIGHT_UNSUPPORTED_VAL:
return OFGroupModFailedCode.WEIGHT_UNSUPPORTED;
case OUT_OF_GROUPS_VAL:
return OFGroupModFailedCode.OUT_OF_GROUPS;
case OUT_OF_BUCKETS_VAL:
return OFGroupModFailedCode.OUT_OF_BUCKETS;
case CHAINING_UNSUPPORTED_VAL:
return OFGroupModFailedCode.CHAINING_UNSUPPORTED;
case WATCH_UNSUPPORTED_VAL:
return OFGroupModFailedCode.WATCH_UNSUPPORTED;
case LOOP_VAL:
return OFGroupModFailedCode.LOOP;
case UNKNOWN_GROUP_VAL:
return OFGroupModFailedCode.UNKNOWN_GROUP;
case CHAINED_GROUP_VAL:
return OFGroupModFailedCode.CHAINED_GROUP;
case BAD_TYPE_VAL:
return OFGroupModFailedCode.BAD_TYPE;
case BAD_COMMAND_VAL:
return OFGroupModFailedCode.BAD_COMMAND;
case BAD_BUCKET_VAL:
return OFGroupModFailedCode.BAD_BUCKET;
case BAD_WATCH_VAL:
return OFGroupModFailedCode.BAD_WATCH;
case EPERM_VAL:
return OFGroupModFailedCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFGroupModFailedCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 276 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : DEFAULT_CHECKSUM;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : DEFAULT_CHECKSUM_MASK;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
return new OFBsnGentableEntryDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 276 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : DEFAULT_CHECKSUM;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : DEFAULT_CHECKSUM_MASK;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
return new OFBsnGentableEntryStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 399 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1070 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1860 |
switch (field.id) {
case IN_PORT:
return (this.wildcards & OFPFW_IN_PORT) == 0;
case ETH_DST:
return (this.wildcards & OFPFW_DL_DST) == 0;
case ETH_SRC:
return (this.wildcards & OFPFW_DL_SRC) == 0;
case ETH_TYPE:
return (this.wildcards & OFPFW_DL_TYPE) == 0;
case VLAN_VID:
return (this.wildcards & OFPFW_DL_VLAN) == 0;
case VLAN_PCP:
return (this.wildcards & OFPFW_DL_VLAN_PCP) == 0;
case ARP_OP:
return (this.wildcards & OFPFW_NW_PROTO) == 0;
case ARP_SPA:
return this.getIpv4SrcCidrMaskLen() >= 32;
case ARP_TPA:
return this.getIpv4DstCidrMaskLen() >= 32;
case IP_DSCP:
return (this.wildcards & OFPFW_NW_TOS) == 0;
case IP_PROTO:
return (this.wildcards & OFPFW_NW_PROTO) == 0;
case IPV4_SRC:
return this.getIpv4SrcCidrMaskLen() >= 32;
case IPV4_DST:
return this.getIpv4DstCidrMaskLen() >= 32;
case TCP_SRC:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case TCP_DST:
return (this.wildcards & OFPFW_TP_DST) == 0;
case UDP_SRC:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case UDP_DST:
return (this.wildcards & OFPFW_TP_DST) == 0;
case SCTP_SRC:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case SCTP_DST:
return (this.wildcards & OFPFW_TP_DST) == 0;
case ICMPV4_TYPE:
return (this.wildcards & OFPFW_TP_SRC) == 0;
case ICMPV4_CODE:
return (this.wildcards & OFPFW_TP_DST) == 0;
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
}
/**
* Parse this match's wildcard fields and return the number of significant
* bits in the IP destination field. NOTE: this returns the number of bits
* that are fixed, i.e., like CIDR, not the number of bits that are free
* like OpenFlow encodes.
*
* @return A number between 0 (matches all IPs) and 32 (exact match)
*/
public int getIpv4DstCidrMaskLen() {
return Math.max(32 - ((wildcards & OFPFW_NW_DST_MASK) >> OFPFW_NW_DST_SHIFT),
0);
}
/**
* Parse this match's wildcard fields and return the number of significant
* bits in the IP destination field. NOTE: this returns the number of bits
* that are fixed, i.e., like CIDR, not the number of bits that are free
* like OpenFlow encodes.
*
* @return A number between 0 (matches all IPs) and 32 (exact match)
*/
public int getIpv4SrcCidrMaskLen() {
return Math.max(32 - ((wildcards & OFPFW_NW_SRC_MASK) >> OFPFW_NW_SRC_SHIFT),
0);
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 173 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 332 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFBsnSetLacpRequest.Builder setEnabled(short enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnSetLacpRequest.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public OFBsnSetLacpRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 173 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 332 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFBsnSetLacpRequest.Builder setEnabled(short enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnSetLacpRequest.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public OFBsnSetLacpRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 600 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 385 |
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(OFPort.ofShort(inputPort));
OFOxmEthSrc oxmEthSrc = new OFOxmEthSrcVer13(MacAddress.of(ethSrc));
OFOxmEthDst oxmEthDst = new OFOxmEthDstVer13(MacAddress.of(ethDst));
OFOxmEthType oxmEthType = new OFOxmEthTypeVer13(EthType.of(ethType));
OFOxmVlanVid oxmVlanVid = new OFOxmVlanVidVer13(OFVlanVidMatch.ofRawVid(vlanVid));
OFOxmVlanPcp oxmVlanPcp = new OFOxmVlanPcpVer13(VlanPcp.FULL_MASK.of(vlanPcp));
OFOxmIpDscp oxmIpDscp = new OFOxmIpDscpVer13(IpDscp.of(ipDscp));
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
oxmMap.put(MatchFields.ETH_SRC, oxmEthSrc);
oxmMap.put(MatchFields.ETH_DST, oxmEthDst);
oxmMap.put(MatchFields.ETH_TYPE, oxmEthType);
oxmMap.put(MatchFields.VLAN_VID, oxmVlanVid);
oxmMap.put(MatchFields.VLAN_PCP, oxmVlanPcp);
oxmMap.put(MatchFields.IP_DSCP, oxmIpDscp);
if (ipProtocol != 0) {
OFOxmIpProto oxmIpProto = new OFOxmIpProtoVer13(IpProtocol.of(ipProtocol));
oxmMap.put(MatchFields.IP_PROTO, oxmIpProto);
}
if (ipv4Src != 0) {
OFOxmIpv4Src oxmIpv4Src = new OFOxmIpv4SrcVer13(IPv4Address.of(ipv4Src));
oxmMap.put(MatchFields.IPV4_SRC, oxmIpv4Src);
}
if (ipv4Dst != 0) {
OFOxmIpv4Dst oxmIpv4Dst = new OFOxmIpv4DstVer13(IPv4Address.of(ipv4Dst));
oxmMap.put(MatchFields.IPV4_DST, oxmIpv4Dst);
}
if (tcpSrc != 0) {
OFOxmTcpSrc oxmTcpSrc = new OFOxmTcpSrcVer13(TransportPort.of(tcpSrc));
oxmMap.put(MatchFields.TCP_SRC, oxmTcpSrc);
}
if (tcpDst != 0) {
OFOxmTcpDst oxmTcpDst = new OFOxmTcpDstVer13(TransportPort.of(tcpDst));
oxmMap.put(MatchFields.TCP_DST, oxmTcpDst);
}
OFOxmList oxmList = new OFOxmList(oxmMap);
Match matchFromPacket =OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return matchFromPacket;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 267 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 267 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryAdd.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryAdd.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryAdd.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryAdd.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : DEFAULT_CHECKSUM;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
List<OFBsnTlv> key = this.keySet ? this.key : DEFAULT_KEY;
if(key == null)
throw new NullPointerException("Property key must not be null");
List<OFBsnTlv> value = this.valueSet ? this.value : DEFAULT_VALUE;
if(value == null)
throw new NullPointerException("Property value must not be null");
return new OFBsnGentableEntryAddVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 184 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 184 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 532 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 532 |
OFTableFeaturesVer13 other = (OFTableFeaturesVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (metadataMatch == null) {
if (other.metadataMatch != null)
return false;
} else if (!metadataMatch.equals(other.metadataMatch))
return false;
if (metadataWrite == null) {
if (other.metadataWrite != null)
return false;
} else if (!metadataWrite.equals(other.metadataWrite))
return false;
if( config != other.config)
return false;
if( maxEntries != other.maxEntries)
return false;
if (properties == null) {
if (other.properties != null)
return false;
} else if (!properties.equals(other.properties))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((metadataMatch == null) ? 0 : metadataMatch.hashCode());
result = prime * result + ((metadataWrite == null) ? 0 : metadataWrite.hashCode());
result = prime * (int) (config ^ (config >>> 32));
result = prime * (int) (maxEntries ^ (maxEntries >>> 32));
result = prime * result + ((properties == null) ? 0 : properties.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 348 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetReplyVer14.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetReplyVer14.java | 243 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.GET_ASYNC_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getPacketInMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncGetReply.Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPacketInMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncGetReply.Builder setPacketInMaskSlave(long packetInMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public long getPortStatusMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncGetReply.Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPortStatusMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncGetReply.Builder setPortStatusMaskSlave(long portStatusMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncGetReply.Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncGetReply.Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public List<OFAsyncConfigProp> getProperties() {
return properties;
}
@Override
public OFAsyncGetReply.Builder setProperties(List<OFAsyncConfigProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFAsyncGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetRequestVer14.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetRequestVer14.java | 243 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.GET_ASYNC_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getPacketInMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncGetRequest.Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPacketInMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncGetRequest.Builder setPacketInMaskSlave(long packetInMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public long getPortStatusMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncGetRequest.Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPortStatusMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncGetRequest.Builder setPortStatusMaskSlave(long portStatusMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncGetRequest.Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncGetRequest.Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public List<OFAsyncConfigProp> getProperties() {
return properties;
}
@Override
public OFAsyncGetRequest.Builder setProperties(List<OFAsyncConfigProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFAsyncGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncSetVer14.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncSetVer14.java | 243 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.SET_ASYNC;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncSet.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getPacketInMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncSet.Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPacketInMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncSet.Builder setPacketInMaskSlave(long packetInMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public long getPortStatusMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncSet.Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPortStatusMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncSet.Builder setPortStatusMaskSlave(long portStatusMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public OFAsyncSet.Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public OFAsyncSet.Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public List<OFAsyncConfigProp> getProperties() {
return properties;
}
@Override
public OFAsyncSet.Builder setProperties(List<OFAsyncConfigProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFAsyncSet build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 430 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 430 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 430 |
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
U64 rxPackets = this.rxPacketsSet ? this.rxPackets : parentMessage.rxPackets;
if(rxPackets == null)
throw new NullPointerException("Property rxPackets must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : parentMessage.txPackets;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 rxBytes = this.rxBytesSet ? this.rxBytes : parentMessage.rxBytes;
if(rxBytes == null)
throw new NullPointerException("Property rxBytes must not be null");
U64 txBytes = this.txBytesSet ? this.txBytes : parentMessage.txBytes;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 rxDropped = this.rxDroppedSet ? this.rxDropped : parentMessage.rxDropped;
if(rxDropped == null)
throw new NullPointerException("Property rxDropped must not be null");
U64 txDropped = this.txDroppedSet ? this.txDropped : parentMessage.txDropped;
if(txDropped == null)
throw new NullPointerException("Property txDropped must not be null");
U64 rxErrors = this.rxErrorsSet ? this.rxErrors : parentMessage.rxErrors;
if(rxErrors == null)
throw new NullPointerException("Property rxErrors must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : parentMessage.txErrors;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : parentMessage.rxFrameErr;
if(rxFrameErr == null)
throw new NullPointerException("Property rxFrameErr must not be null");
U64 rxOverErr = this.rxOverErrSet ? this.rxOverErr : parentMessage.rxOverErr;
if(rxOverErr == null)
throw new NullPointerException("Property rxOverErr must not be null");
U64 rxCrcErr = this.rxCrcErrSet ? this.rxCrcErr : parentMessage.rxCrcErr;
if(rxCrcErr == null)
throw new NullPointerException("Property rxCrcErr must not be null");
U64 collisions = this.collisionsSet ? this.collisions : parentMessage.collisions;
if(collisions == null)
throw new NullPointerException("Property collisions must not be null");
//
return new OFPortStatsEntryVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 430 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 430 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 430 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 444 |
}
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
U64 rxPackets = this.rxPacketsSet ? this.rxPackets : parentMessage.rxPackets;
if(rxPackets == null)
throw new NullPointerException("Property rxPackets must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : parentMessage.txPackets;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 rxBytes = this.rxBytesSet ? this.rxBytes : parentMessage.rxBytes;
if(rxBytes == null)
throw new NullPointerException("Property rxBytes must not be null");
U64 txBytes = this.txBytesSet ? this.txBytes : parentMessage.txBytes;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 rxDropped = this.rxDroppedSet ? this.rxDropped : parentMessage.rxDropped;
if(rxDropped == null)
throw new NullPointerException("Property rxDropped must not be null");
U64 txDropped = this.txDroppedSet ? this.txDropped : parentMessage.txDropped;
if(txDropped == null)
throw new NullPointerException("Property txDropped must not be null");
U64 rxErrors = this.rxErrorsSet ? this.rxErrors : parentMessage.rxErrors;
if(rxErrors == null)
throw new NullPointerException("Property rxErrors must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : parentMessage.txErrors;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : parentMessage.rxFrameErr;
if(rxFrameErr == null)
throw new NullPointerException("Property rxFrameErr must not be null");
U64 rxOverErr = this.rxOverErrSet ? this.rxOverErr : parentMessage.rxOverErr;
if(rxOverErr == null)
throw new NullPointerException("Property rxOverErr must not be null");
U64 rxCrcErr = this.rxCrcErrSet ? this.rxCrcErr : parentMessage.rxCrcErr;
if(rxCrcErr == null)
throw new NullPointerException("Property rxCrcErr must not be null");
U64 collisions = this.collisionsSet ? this.collisions : parentMessage.collisions;
if(collisions == null)
throw new NullPointerException("Property collisions must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 280 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 280 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 280 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 280 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 280 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
//
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
boolean enabled = this.enabledSet ? this.enabled : DEFAULT_ENABLED;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
return new OFBsnSetPktinSuppressionRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/types/OFPort.java | 167 |
| org/projectfloodlight/openflow/types/OFPort.java | 311 |
public static OFPort ofInt(final int portNumber) {
switch (portNumber) {
case 0:
return PrecachedPort.p0;
case 1:
return PrecachedPort.p1;
case 2:
return PrecachedPort.p2;
case 3:
return PrecachedPort.p3;
case 4:
return PrecachedPort.p4;
case 5:
return PrecachedPort.p5;
case 6:
return PrecachedPort.p6;
case 7:
return PrecachedPort.p7;
case 8:
return PrecachedPort.p8;
case 9:
return PrecachedPort.p9;
case 10:
return PrecachedPort.p10;
case 11:
return PrecachedPort.p11;
case 12:
return PrecachedPort.p12;
case 13:
return PrecachedPort.p13;
case 14:
return PrecachedPort.p14;
case 15:
return PrecachedPort.p15;
case 16:
return PrecachedPort.p16;
case 17:
return PrecachedPort.p17;
case 18:
return PrecachedPort.p18;
case 19:
return PrecachedPort.p19;
case 20:
return PrecachedPort.p20;
case 21:
return PrecachedPort.p21;
case 22:
return PrecachedPort.p22;
case 23:
return PrecachedPort.p23;
case 24:
return PrecachedPort.p24;
case 25:
return PrecachedPort.p25;
case 26:
return PrecachedPort.p26;
case 27:
return PrecachedPort.p27;
case 28:
return PrecachedPort.p28;
case 29:
return PrecachedPort.p29;
case 31:
return PrecachedPort.p31;
case 32:
return PrecachedPort.p32;
case 33:
return PrecachedPort.p33;
case 34:
return PrecachedPort.p34;
case 35:
return PrecachedPort.p35;
case 36:
return PrecachedPort.p36;
case 37:
return PrecachedPort.p37;
case 38:
return PrecachedPort.p38;
case 39:
return PrecachedPort.p39;
case 40:
return PrecachedPort.p40;
case 41:
return PrecachedPort.p41;
case 42:
return PrecachedPort.p42;
case 43:
return PrecachedPort.p43;
case 44:
return PrecachedPort.p44;
case 45:
return PrecachedPort.p45;
case 46:
return PrecachedPort.p46;
case 47:
return PrecachedPort.p47;
case 48:
return PrecachedPort.p48;
case OFPP_MAX_INT: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 176 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 335 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFBsnSetLacpRequest.Builder setEnabled(short enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnSetLacpRequest.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
@Override
public OFBsnSetLacpRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 335 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 176 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFBsnSetLacpRequest.Builder setEnabled(short enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysPriority(int actorSysPriority) {
this.actorSysPriority = actorSysPriority;
this.actorSysPrioritySet = true;
return this;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public OFBsnSetLacpRequest.Builder setActorSysMac(MacAddress actorSysMac) {
this.actorSysMac = actorSysMac;
this.actorSysMacSet = true;
return this;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortPriority(int actorPortPriority) {
this.actorPortPriority = actorPortPriority;
this.actorPortPrioritySet = true;
return this;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public OFBsnSetLacpRequest.Builder setActorPortNum(int actorPortNum) {
this.actorPortNum = actorPortNum;
this.actorPortNumSet = true;
return this;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public OFBsnSetLacpRequest.Builder setActorKey(int actorKey) {
this.actorKey = actorKey;
this.actorKeySet = true;
return this;
}
//
@Override
public OFBsnSetLacpRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 292 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.GET_ASYNC_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getPacketInMaskEqualMaster() {
return packetInMaskEqualMaster;
}
@Override
public OFAsyncGetReply.Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) {
this.packetInMaskEqualMaster = packetInMaskEqualMaster;
this.packetInMaskEqualMasterSet = true;
return this;
}
@Override
public long getPacketInMaskSlave() {
return packetInMaskSlave;
}
@Override
public OFAsyncGetReply.Builder setPacketInMaskSlave(long packetInMaskSlave) {
this.packetInMaskSlave = packetInMaskSlave;
this.packetInMaskSlaveSet = true;
return this;
}
@Override
public long getPortStatusMaskEqualMaster() {
return portStatusMaskEqualMaster;
}
@Override
public OFAsyncGetReply.Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) {
this.portStatusMaskEqualMaster = portStatusMaskEqualMaster;
this.portStatusMaskEqualMasterSet = true;
return this;
}
@Override
public long getPortStatusMaskSlave() {
return portStatusMaskSlave;
}
@Override
public OFAsyncGetReply.Builder setPortStatusMaskSlave(long portStatusMaskSlave) {
this.portStatusMaskSlave = portStatusMaskSlave;
this.portStatusMaskSlaveSet = true;
return this;
}
@Override
public long getFlowRemovedMaskEqualMaster() {
return flowRemovedMaskEqualMaster;
}
@Override
public OFAsyncGetReply.Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) {
this.flowRemovedMaskEqualMaster = flowRemovedMaskEqualMaster;
this.flowRemovedMaskEqualMasterSet = true;
return this;
}
@Override
public long getFlowRemovedMaskSlave() {
return flowRemovedMaskSlave;
}
@Override
public OFAsyncGetReply.Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) {
this.flowRemovedMaskSlave = flowRemovedMaskSlave;
this.flowRemovedMaskSlaveSet = true;
return this;
}
@Override
public List<OFAsyncConfigProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFAsyncGetReply.Builder setProperties(List<OFAsyncConfigProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFAsyncGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 292 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.GET_ASYNC_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getPacketInMaskEqualMaster() {
return packetInMaskEqualMaster;
}
@Override
public OFAsyncGetRequest.Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) {
this.packetInMaskEqualMaster = packetInMaskEqualMaster;
this.packetInMaskEqualMasterSet = true;
return this;
}
@Override
public long getPacketInMaskSlave() {
return packetInMaskSlave;
}
@Override
public OFAsyncGetRequest.Builder setPacketInMaskSlave(long packetInMaskSlave) {
this.packetInMaskSlave = packetInMaskSlave;
this.packetInMaskSlaveSet = true;
return this;
}
@Override
public long getPortStatusMaskEqualMaster() {
return portStatusMaskEqualMaster;
}
@Override
public OFAsyncGetRequest.Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) {
this.portStatusMaskEqualMaster = portStatusMaskEqualMaster;
this.portStatusMaskEqualMasterSet = true;
return this;
}
@Override
public long getPortStatusMaskSlave() {
return portStatusMaskSlave;
}
@Override
public OFAsyncGetRequest.Builder setPortStatusMaskSlave(long portStatusMaskSlave) {
this.portStatusMaskSlave = portStatusMaskSlave;
this.portStatusMaskSlaveSet = true;
return this;
}
@Override
public long getFlowRemovedMaskEqualMaster() {
return flowRemovedMaskEqualMaster;
}
@Override
public OFAsyncGetRequest.Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) {
this.flowRemovedMaskEqualMaster = flowRemovedMaskEqualMaster;
this.flowRemovedMaskEqualMasterSet = true;
return this;
}
@Override
public long getFlowRemovedMaskSlave() {
return flowRemovedMaskSlave;
}
@Override
public OFAsyncGetRequest.Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) {
this.flowRemovedMaskSlave = flowRemovedMaskSlave;
this.flowRemovedMaskSlaveSet = true;
return this;
}
@Override
public List<OFAsyncConfigProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFAsyncGetRequest.Builder setProperties(List<OFAsyncConfigProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFAsyncGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 292 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.SET_ASYNC;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncSet.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getPacketInMaskEqualMaster() {
return packetInMaskEqualMaster;
}
@Override
public OFAsyncSet.Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) {
this.packetInMaskEqualMaster = packetInMaskEqualMaster;
this.packetInMaskEqualMasterSet = true;
return this;
}
@Override
public long getPacketInMaskSlave() {
return packetInMaskSlave;
}
@Override
public OFAsyncSet.Builder setPacketInMaskSlave(long packetInMaskSlave) {
this.packetInMaskSlave = packetInMaskSlave;
this.packetInMaskSlaveSet = true;
return this;
}
@Override
public long getPortStatusMaskEqualMaster() {
return portStatusMaskEqualMaster;
}
@Override
public OFAsyncSet.Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) {
this.portStatusMaskEqualMaster = portStatusMaskEqualMaster;
this.portStatusMaskEqualMasterSet = true;
return this;
}
@Override
public long getPortStatusMaskSlave() {
return portStatusMaskSlave;
}
@Override
public OFAsyncSet.Builder setPortStatusMaskSlave(long portStatusMaskSlave) {
this.portStatusMaskSlave = portStatusMaskSlave;
this.portStatusMaskSlaveSet = true;
return this;
}
@Override
public long getFlowRemovedMaskEqualMaster() {
return flowRemovedMaskEqualMaster;
}
@Override
public OFAsyncSet.Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) {
this.flowRemovedMaskEqualMaster = flowRemovedMaskEqualMaster;
this.flowRemovedMaskEqualMasterSet = true;
return this;
}
@Override
public long getFlowRemovedMaskSlave() {
return flowRemovedMaskSlave;
}
@Override
public OFAsyncSet.Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) {
this.flowRemovedMaskSlave = flowRemovedMaskSlave;
this.flowRemovedMaskSlaveSet = true;
return this;
}
@Override
public List<OFAsyncConfigProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFAsyncSet.Builder setProperties(List<OFAsyncConfigProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFAsyncSet build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 721 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 721 |
OFBsnLacpStatsEntryVer13 other = (OFBsnLacpStatsEntryVer13) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( actorSysPriority != other.actorSysPriority)
return false;
if (actorSysMac == null) {
if (other.actorSysMac != null)
return false;
} else if (!actorSysMac.equals(other.actorSysMac))
return false;
if( actorPortPriority != other.actorPortPriority)
return false;
if( actorPortNum != other.actorPortNum)
return false;
if( actorKey != other.actorKey)
return false;
if( convergenceStatus != other.convergenceStatus)
return false;
if( partnerSysPriority != other.partnerSysPriority)
return false;
if (partnerSysMac == null) {
if (other.partnerSysMac != null)
return false;
} else if (!partnerSysMac.equals(other.partnerSysMac))
return false;
if( partnerPortPriority != other.partnerPortPriority)
return false;
if( partnerPortNum != other.partnerPortNum)
return false;
if( partnerKey != other.partnerKey)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + actorSysPriority;
result = prime * result + ((actorSysMac == null) ? 0 : actorSysMac.hashCode());
result = prime * result + actorPortPriority;
result = prime * result + actorPortNum;
result = prime * result + actorKey;
result = prime * result + convergenceStatus;
result = prime * result + partnerSysPriority;
result = prime * result + ((partnerSysMac == null) ? 0 : partnerSysMac.hashCode());
result = prime * result + partnerPortPriority;
result = prime * result + partnerPortNum;
result = prime * result + partnerKey;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 253 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 253 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 253 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 263 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 240 |
BuilderWithParent(OFPortStatsEntryVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 187 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 351 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 187 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 187 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFAggregateStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFAggregateStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFAggregateStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFAggregateStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 187 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 351 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 187 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 187 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public OFFlowStatsRequest.Builder setOutGroup(OFGroup outGroup) {
this.outGroup = outGroup;
this.outGroupSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowStatsRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public OFFlowStatsRequest.Builder setCookieMask(U64 cookieMask) {
this.cookieMask = cookieMask;
this.cookieMaskSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowStatsRequest.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 259 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 259 |
return new OFGroupStatsEntryVer13(
group,
refCount,
packetCount,
byteCount,
durationSec,
durationNsec,
bucketStats
);
}
}
static class Builder implements OFGroupStatsEntry.Builder {
// OF message fields
private boolean groupSet;
private OFGroup group;
private boolean refCountSet;
private long refCount;
private boolean packetCountSet;
private U64 packetCount;
private boolean byteCountSet;
private U64 byteCount;
private boolean durationSecSet;
private long durationSec;
private boolean durationNsecSet;
private long durationNsec;
private boolean bucketStatsSet;
private List<OFBucketCounter> bucketStats;
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 254 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 254 |
return new OFMeterStatsVer13(
meterId,
flowCount,
packetInCount,
byteInCount,
durationSec,
durationNsec,
bandStats
);
}
}
static class Builder implements OFMeterStats.Builder {
// OF message fields
private boolean meterIdSet;
private long meterId;
private boolean flowCountSet;
private long flowCount;
private boolean packetInCountSet;
private U64 packetInCount;
private boolean byteInCountSet;
private U64 byteInCount;
private boolean durationSecSet;
private long durationSec;
private boolean durationNsecSet;
private long durationNsec;
private boolean bandStatsSet;
private List<OFMeterBandStats> bandStats;
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStats.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFMeterStats.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public OFMeterStats.Builder setPacketInCount(U64 packetInCount) {
this.packetInCount = packetInCount;
this.packetInCountSet = true;
return this;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public OFMeterStats.Builder setByteInCount(U64 byteInCount) {
this.byteInCount = byteInCount;
this.byteInCountSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFMeterStats.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFMeterStats.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFMeterStats.Builder setBandStats(List<OFMeterBandStats> bandStats) {
this.bandStats = bandStats;
this.bandStatsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 264 |
return new OFTableFeaturesVer13(
tableId,
name,
metadataMatch,
metadataWrite,
config,
maxEntries,
properties
);
}
}
static class Builder implements OFTableFeatures.Builder {
// OF message fields
private boolean tableIdSet;
private TableId tableId;
private boolean nameSet;
private String name;
private boolean metadataMatchSet;
private U64 metadataMatch;
private boolean metadataWriteSet;
private U64 metadataWrite;
private boolean configSet;
private long config;
private boolean maxEntriesSet;
private long maxEntries;
private boolean propertiesSet;
private List<OFTableFeatureProp> properties;
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableFeatures.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableFeatures.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableFeatures.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableFeatures.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableFeatures.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableFeatures.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFTableFeatures.Builder setProperties(List<OFTableFeatureProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 145 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 145 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 145 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 145 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 145 |
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort inPort = this.inPortSet ? this.inPort : parentMessage.inPort;
if(inPort == null)
throw new NullPointerException("Property inPort must not be null");
List<OFAction> actions = this.actionsSet ? this.actions : parentMessage.actions;
if(actions == null)
throw new NullPointerException("Property actions must not be null");
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFPacketOutVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 145 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 145 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 145 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 145 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 145 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
long flowCount = this.flowCountSet ? this.flowCount : parentMessage.flowCount;
//
return new OFAggregateStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortFeaturesSerializerVer10.java | 49 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortFeaturesSerializerVer11.java | 53 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortFeaturesSerializerVer12.java | 53 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortFeaturesSerializerVer13.java | 54 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortFeaturesSerializerVer14.java | 54 |
public static Set<OFPortFeatures> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortFeatures> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortFeatures> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortFeatures> ofWireValue(int val) {
EnumSet<OFPortFeatures> set = EnumSet.noneOf(OFPortFeatures.class);
if((val & PF_10MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_HD);
if((val & PF_10MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10MB_FD);
if((val & PF_100MB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_HD);
if((val & PF_100MB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_100MB_FD);
if((val & PF_1GB_HD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_HD);
if((val & PF_1GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_1GB_FD);
if((val & PF_10GB_FD_VAL) != 0)
set.add(OFPortFeatures.PF_10GB_FD);
if((val & PF_COPPER_VAL) != 0)
set.add(OFPortFeatures.PF_COPPER);
if((val & PF_FIBER_VAL) != 0)
set.add(OFPortFeatures.PF_FIBER);
if((val & PF_AUTONEG_VAL) != 0)
set.add(OFPortFeatures.PF_AUTONEG);
if((val & PF_PAUSE_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE);
if((val & PF_PAUSE_ASYM_VAL) != 0)
set.add(OFPortFeatures.PF_PAUSE_ASYM); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 150 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 280 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0");
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.0");
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.0");
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFQueueStatsEntry.Builder setProperties(List<OFQueueStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 150 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 280 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1");
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.1");
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.1");
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFQueueStatsEntry.Builder setProperties(List<OFQueueStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 150 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 280 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.2");
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.2");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.2");
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.2");
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFQueueStatsEntry.Builder setProperties(List<OFQueueStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 149 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 149 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnFlowIdle.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnFlowIdle.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowIdle.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFBsnFlowIdle.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFBsnFlowIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int priority = this.prioritySet ? this.priority : parentMessage.priority;
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
//
return new OFBsnFlowIdleVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 257 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 257 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 257 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 267 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 500 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 525 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 525 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 525 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 547 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 244 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public OFPortStatsEntry.Builder setRxPackets(U64 rxPackets) {
this.rxPackets = rxPackets;
this.rxPacketsSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFPortStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public OFPortStatsEntry.Builder setRxBytes(U64 rxBytes) {
this.rxBytes = rxBytes;
this.rxBytesSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFPortStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public OFPortStatsEntry.Builder setRxDropped(U64 rxDropped) {
this.rxDropped = rxDropped;
this.rxDroppedSet = true;
return this;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public OFPortStatsEntry.Builder setTxDropped(U64 txDropped) {
this.txDropped = txDropped;
this.txDroppedSet = true;
return this;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public OFPortStatsEntry.Builder setRxErrors(U64 rxErrors) {
this.rxErrors = rxErrors;
this.rxErrorsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFPortStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public U64 getRxFrameErr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 302 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFQueueStatsEntry.Builder setProperties(List<OFQueueStatsProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 253 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 253 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 253 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 253 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 253 |
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort inPort = this.inPortSet ? this.inPort : DEFAULT_IN_PORT;
if(inPort == null)
throw new NullPointerException("Property inPort must not be null");
List<OFAction> actions = this.actionsSet ? this.actions : DEFAULT_ACTIONS;
if(actions == null)
throw new NullPointerException("Property actions must not be null");
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFPacketOutVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 147 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 147 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 147 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 147 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long timeoutMs = this.timeoutMsSet ? this.timeoutMs : parentMessage.timeoutMs;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : parentMessage.slotNum;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnPduRxRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 147 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 147 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 147 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 147 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long txIntervalMs = this.txIntervalMsSet ? this.txIntervalMs : parentMessage.txIntervalMs;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : parentMessage.slotNum;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnPduTxRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 530 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 530 |
OFGroupStatsEntryVer13 other = (OFGroupStatsEntryVer13) obj;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
if( refCount != other.refCount)
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if (bucketStats == null) {
if (other.bucketStats != null)
return false;
} else if (!bucketStats.equals(other.bucketStats))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((group == null) ? 0 : group.hashCode());
result = prime * (int) (refCount ^ (refCount >>> 32));
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + ((bucketStats == null) ? 0 : bucketStats.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 169 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 319 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFQueueStatsProp> getProperties() {
return properties;
}
@Override
public OFQueueStatsEntry.Builder setProperties(List<OFQueueStatsProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 698 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 698 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 698 |
}
//
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
U64 rxPackets = this.rxPacketsSet ? this.rxPackets : DEFAULT_RX_PACKETS;
if(rxPackets == null)
throw new NullPointerException("Property rxPackets must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : DEFAULT_TX_PACKETS;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 rxBytes = this.rxBytesSet ? this.rxBytes : DEFAULT_RX_BYTES;
if(rxBytes == null)
throw new NullPointerException("Property rxBytes must not be null");
U64 txBytes = this.txBytesSet ? this.txBytes : DEFAULT_TX_BYTES;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 rxDropped = this.rxDroppedSet ? this.rxDropped : DEFAULT_RX_DROPPED;
if(rxDropped == null)
throw new NullPointerException("Property rxDropped must not be null");
U64 txDropped = this.txDroppedSet ? this.txDropped : DEFAULT_TX_DROPPED;
if(txDropped == null)
throw new NullPointerException("Property txDropped must not be null");
U64 rxErrors = this.rxErrorsSet ? this.rxErrors : DEFAULT_RX_ERRORS;
if(rxErrors == null)
throw new NullPointerException("Property rxErrors must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : DEFAULT_TX_ERRORS;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : DEFAULT_RX_FRAME_ERR;
if(rxFrameErr == null)
throw new NullPointerException("Property rxFrameErr must not be null");
U64 rxOverErr = this.rxOverErrSet ? this.rxOverErr : DEFAULT_RX_OVER_ERR;
if(rxOverErr == null)
throw new NullPointerException("Property rxOverErr must not be null");
U64 rxCrcErr = this.rxCrcErrSet ? this.rxCrcErr : DEFAULT_RX_CRC_ERR;
if(rxCrcErr == null)
throw new NullPointerException("Property rxCrcErr must not be null");
U64 collisions = this.collisionsSet ? this.collisions : DEFAULT_COLLISIONS;
if(collisions == null)
throw new NullPointerException("Property collisions must not be null");
return new OFPortStatsEntryVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortConfigSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortConfigSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortConfigSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortConfigSerializerVer14.java | 34 |
public class OFPortConfigSerializerVer11 {
public final static int PORT_DOWN_VAL = 0x1;
public final static int NO_RECV_VAL = 0x4;
public final static int NO_FWD_VAL = 0x20;
public final static int NO_PACKET_IN_VAL = 0x40;
public final static int BSN_MIRROR_DEST_VAL = (int) 0x80000000;
public static Set<OFPortConfig> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortConfig> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortConfig> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortConfig> ofWireValue(int val) {
EnumSet<OFPortConfig> set = EnumSet.noneOf(OFPortConfig.class);
if((val & PORT_DOWN_VAL) != 0)
set.add(OFPortConfig.PORT_DOWN);
if((val & NO_RECV_VAL) != 0)
set.add(OFPortConfig.NO_RECV);
if((val & NO_FWD_VAL) != 0)
set.add(OFPortConfig.NO_FWD);
if((val & NO_PACKET_IN_VAL) != 0)
set.add(OFPortConfig.NO_PACKET_IN);
if((val & BSN_MIRROR_DEST_VAL) != 0)
set.add(OFPortConfig.BSN_MIRROR_DEST);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortConfig> set) {
int wireValue = 0;
for(OFPortConfig e: set) {
switch(e) {
case PORT_DOWN:
wireValue |= PORT_DOWN_VAL;
break;
case NO_RECV:
wireValue |= NO_RECV_VAL;
break;
case NO_FWD:
wireValue |= NO_FWD_VAL;
break;
case NO_PACKET_IN:
wireValue |= NO_PACKET_IN_VAL;
break;
case BSN_MIRROR_DEST:
wireValue |= BSN_MIRROR_DEST_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFPortConfig in version 1.1: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 256 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 256 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 256 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
//
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
long flowCount = this.flowCountSet ? this.flowCount : DEFAULT_FLOW_COUNT;
return new OFAggregateStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 265 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 265 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnFlowIdle.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnFlowIdle.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowIdle.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFBsnFlowIdle.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFBsnFlowIdle build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
return new OFBsnFlowIdleVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 698 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 698 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 698 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 724 |
}
//
@Override
public OFPortStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
U64 rxPackets = this.rxPacketsSet ? this.rxPackets : DEFAULT_RX_PACKETS;
if(rxPackets == null)
throw new NullPointerException("Property rxPackets must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : DEFAULT_TX_PACKETS;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 rxBytes = this.rxBytesSet ? this.rxBytes : DEFAULT_RX_BYTES;
if(rxBytes == null)
throw new NullPointerException("Property rxBytes must not be null");
U64 txBytes = this.txBytesSet ? this.txBytes : DEFAULT_TX_BYTES;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 rxDropped = this.rxDroppedSet ? this.rxDropped : DEFAULT_RX_DROPPED;
if(rxDropped == null)
throw new NullPointerException("Property rxDropped must not be null");
U64 txDropped = this.txDroppedSet ? this.txDropped : DEFAULT_TX_DROPPED;
if(txDropped == null)
throw new NullPointerException("Property txDropped must not be null");
U64 rxErrors = this.rxErrorsSet ? this.rxErrors : DEFAULT_RX_ERRORS;
if(rxErrors == null)
throw new NullPointerException("Property rxErrors must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : DEFAULT_TX_ERRORS;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : DEFAULT_RX_FRAME_ERR;
if(rxFrameErr == null)
throw new NullPointerException("Property rxFrameErr must not be null");
U64 rxOverErr = this.rxOverErrSet ? this.rxOverErr : DEFAULT_RX_OVER_ERR;
if(rxOverErr == null)
throw new NullPointerException("Property rxOverErr must not be null");
U64 rxCrcErr = this.rxCrcErrSet ? this.rxCrcErr : DEFAULT_RX_CRC_ERR;
if(rxCrcErr == null)
throw new NullPointerException("Property rxCrcErr must not be null");
U64 collisions = this.collisionsSet ? this.collisions : DEFAULT_COLLISIONS;
if(collisions == null)
throw new NullPointerException("Property collisions must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreFlagsSerializerVer10.java | 34 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreFlagsSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreFlagsSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreFlagsSerializerVer14.java | 34 |
public class OFBsnVportL2GreFlagsSerializerVer10 {
public final static int BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID_VAL = 0x1;
public final static int BSN_VPORT_L2GRE_DSCP_ASSIGN_VAL = 0x2;
public final static int BSN_VPORT_L2GRE_DSCP_COPY_VAL = 0x4;
public final static int BSN_VPORT_L2GRE_LOOPBACK_IS_VALID_VAL = 0x8;
public final static int BSN_VPORT_L2GRE_RATE_LIMIT_IS_VALID_VAL = 0x10;
public static Set<OFBsnVportL2GreFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFBsnVportL2GreFlags> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFBsnVportL2GreFlags> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFBsnVportL2GreFlags> ofWireValue(int val) {
EnumSet<OFBsnVportL2GreFlags> set = EnumSet.noneOf(OFBsnVportL2GreFlags.class);
if((val & BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID_VAL) != 0)
set.add(OFBsnVportL2GreFlags.BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID);
if((val & BSN_VPORT_L2GRE_DSCP_ASSIGN_VAL) != 0)
set.add(OFBsnVportL2GreFlags.BSN_VPORT_L2GRE_DSCP_ASSIGN);
if((val & BSN_VPORT_L2GRE_DSCP_COPY_VAL) != 0)
set.add(OFBsnVportL2GreFlags.BSN_VPORT_L2GRE_DSCP_COPY);
if((val & BSN_VPORT_L2GRE_LOOPBACK_IS_VALID_VAL) != 0)
set.add(OFBsnVportL2GreFlags.BSN_VPORT_L2GRE_LOOPBACK_IS_VALID);
if((val & BSN_VPORT_L2GRE_RATE_LIMIT_IS_VALID_VAL) != 0)
set.add(OFBsnVportL2GreFlags.BSN_VPORT_L2GRE_RATE_LIMIT_IS_VALID);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFBsnVportL2GreFlags> set) {
int wireValue = 0;
for(OFBsnVportL2GreFlags e: set) {
switch(e) {
case BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID:
wireValue |= BSN_VPORT_L2GRE_LOCAL_MAC_IS_VALID_VAL;
break;
case BSN_VPORT_L2GRE_DSCP_ASSIGN:
wireValue |= BSN_VPORT_L2GRE_DSCP_ASSIGN_VAL;
break;
case BSN_VPORT_L2GRE_DSCP_COPY:
wireValue |= BSN_VPORT_L2GRE_DSCP_COPY_VAL;
break;
case BSN_VPORT_L2GRE_LOOPBACK_IS_VALID:
wireValue |= BSN_VPORT_L2GRE_LOOPBACK_IS_VALID_VAL;
break;
case BSN_VPORT_L2GRE_RATE_LIMIT_IS_VALID:
wireValue |= BSN_VPORT_L2GRE_RATE_LIMIT_IS_VALID_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBsnVportL2GreFlags in version 1.0: " + e); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXPort.java | 70 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXPort.java | 70 |
"Start virtual port {} on virtual switch {} in virtual network {}",
port, dpid, virtualNetwork.getTenantId());
OVXPort ovxPort = virtualNetwork.getSwitch(dpid.longValue())
.getPort(port.shortValue());
Map<String, Object> reply = new HashMap<String, Object>(
ovxPort.getDBObject());
reply.put(TenantHandler.VDPID, ovxPort.getParentSwitch()
.getSwitchId());
reply.put(TenantHandler.TENANT, ovxPort.getTenantId());
resp = new JSONRPC2Response(reply, 0);
} catch (final MissingRequiredField e) {
resp = new JSONRPC2Response(
new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(),
this.cmdName()
+ ": Unable to delete this virtual port in the virtual network : "
+ e.getMessage()), 0);
} catch (final InvalidPortException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid port : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final InvalidDPIDException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid virtual dpid : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
}
return resp;
}
@Override
public JSONRPC2ParamsType getType() {
return JSONRPC2ParamsType.OBJECT;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 261 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 261 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 261 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long timeoutMs = this.timeoutMsSet ? this.timeoutMs : DEFAULT_TIMEOUT_MS;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : DEFAULT_SLOT_NUM;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnPduRxRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 261 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 261 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 261 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long txIntervalMs = this.txIntervalMsSet ? this.txIntervalMs : DEFAULT_TX_INTERVAL_MS;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : DEFAULT_SLOT_NUM;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnPduTxRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 171 |
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 318 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 318 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 318 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 318 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 318 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 438 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int importance = this.importanceSet ? this.importance : parentMessage.importance;
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowAddVer14( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 655 |
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 1087 |
if(metadataMask == null)
throw new NullPointerException("Property metadataMask must not be null");
//
return new OFMatchV2Ver11(
inPort,
wildcards,
ethSrc,
ethSrcMask,
ethDst,
ethDstMask,
vlanVid,
vlanPcp,
ethType,
ipDscp,
ipProto,
ipv4Src,
ipv4SrcMask,
ipv4Dst,
ipv4DstMask,
tcpSrc,
tcpDst,
mplsLabel,
mplsTc,
metadata,
metadataMask
);
}
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public boolean supports(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean supportsMasked(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean isExact(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public <F extends OFValueType<F>> Match.Builder setExact(
MatchField<F> field, F value) {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, F value, F mask) {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public <F extends OFValueType<F>> Match.Builder setMasked(
MatchField<F> field, Masked<F> valueWithMask) {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
// FIXME yotam - please replace with real implementation
return null;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 147 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGenericStatsRequest.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
@Override
public OFBsnGenericStatsRequest.Builder setTlvs(List<OFBsnTlv> tlvs) {
this.tlvs = tlvs;
this.tlvsSet = true;
return this;
}
@Override
public OFBsnGenericStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
List<OFBsnTlv> tlvs = this.tlvsSet ? this.tlvs : parentMessage.tlvs;
if(tlvs == null)
throw new NullPointerException("Property tlvs must not be null");
//
return new OFBsnGenericStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFConfigFlagsSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFConfigFlagsSerializerVer12.java | 34 |
public class OFConfigFlagsSerializerVer11 {
public final static short FRAG_NORMAL_VAL = (short) 0x0;
public final static short FRAG_DROP_VAL = (short) 0x1;
public final static short FRAG_REASM_VAL = (short) 0x2;
public final static short FRAG_MASK_VAL = (short) 0x3;
public final static short INVALID_TTL_TO_CONTROLLER_VAL = (short) 0x4;
public static Set<OFConfigFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFConfigFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFConfigFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFConfigFlags> ofWireValue(short val) {
EnumSet<OFConfigFlags> set = EnumSet.noneOf(OFConfigFlags.class);
if((val & FRAG_MASK_VAL) == FRAG_NORMAL_VAL)
set.add(OFConfigFlags.FRAG_NORMAL);
else if((val & FRAG_MASK_VAL) == FRAG_DROP_VAL)
set.add(OFConfigFlags.FRAG_DROP);
else if((val & FRAG_MASK_VAL) == FRAG_REASM_VAL)
set.add(OFConfigFlags.FRAG_REASM);
if((val & INVALID_TTL_TO_CONTROLLER_VAL) != 0)
set.add(OFConfigFlags.INVALID_TTL_TO_CONTROLLER);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFConfigFlags> set) {
short wireValue = 0;
for(OFConfigFlags e: set) {
switch(e) {
case FRAG_NORMAL:
wireValue |= FRAG_NORMAL_VAL;
break;
case FRAG_DROP:
wireValue |= FRAG_DROP_VAL;
break;
case FRAG_REASM:
wireValue |= FRAG_REASM_VAL;
break;
case INVALID_TTL_TO_CONTROLLER:
wireValue |= INVALID_TTL_TO_CONTROLLER_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFConfigFlags in version 1.1: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 210 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 419 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 215 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 430 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 215 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 430 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 215 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 430 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowRemoved.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 426 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 457 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 426 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 453 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowDeleteStrictVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 426 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 452 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowDeleteVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 426 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 453 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowModifyStrictVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 426 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 451 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowModifyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 677 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 677 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 52)
throw new OFParseError("Wrong length: Expected=52(52), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2bL
int subtype = bb.readInt();
if(subtype != 0x2b)
throw new OFParseError("Wrong subtype: Expected=0x2bL(0x2bL), got="+subtype);
short convergenceStatus = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3);
OFPort portNo = OFPort.read4Bytes(bb);
int actorSysPriority = U16.f(bb.readShort());
MacAddress actorSysMac = MacAddress.read6Bytes(bb);
int actorPortPriority = U16.f(bb.readShort());
int actorPortNum = U16.f(bb.readShort());
int actorKey = U16.f(bb.readShort());
int partnerSysPriority = U16.f(bb.readShort());
MacAddress partnerSysMac = MacAddress.read6Bytes(bb);
int partnerPortPriority = U16.f(bb.readShort());
int partnerPortNum = U16.f(bb.readShort());
int partnerKey = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchCodeSerializerVer14.java | 30 |
public class OFBadMatchCodeSerializerVer12 {
public final static short BAD_TYPE_VAL = (short) 0x0;
public final static short BAD_LEN_VAL = (short) 0x1;
public final static short BAD_TAG_VAL = (short) 0x2;
public final static short BAD_DL_ADDR_MASK_VAL = (short) 0x3;
public final static short BAD_NW_ADDR_MASK_VAL = (short) 0x4;
public final static short BAD_WILDCARDS_VAL = (short) 0x5;
public final static short BAD_FIELD_VAL = (short) 0x6;
public final static short BAD_VALUE_VAL = (short) 0x7;
public final static short BAD_MASK_VAL = (short) 0x8;
public final static short BAD_PREREQ_VAL = (short) 0x9;
public final static short DUP_FIELD_VAL = (short) 0xa;
public final static short EPERM_VAL = (short) 0xb;
public static OFBadMatchCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadMatchCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadMatchCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadMatchCode ofWireValue(short val) {
switch(val) {
case BAD_TYPE_VAL:
return OFBadMatchCode.BAD_TYPE;
case BAD_LEN_VAL:
return OFBadMatchCode.BAD_LEN;
case BAD_TAG_VAL:
return OFBadMatchCode.BAD_TAG;
case BAD_DL_ADDR_MASK_VAL:
return OFBadMatchCode.BAD_DL_ADDR_MASK;
case BAD_NW_ADDR_MASK_VAL:
return OFBadMatchCode.BAD_NW_ADDR_MASK;
case BAD_WILDCARDS_VAL:
return OFBadMatchCode.BAD_WILDCARDS;
case BAD_FIELD_VAL:
return OFBadMatchCode.BAD_FIELD;
case BAD_VALUE_VAL:
return OFBadMatchCode.BAD_VALUE;
case BAD_MASK_VAL:
return OFBadMatchCode.BAD_MASK;
case BAD_PREREQ_VAL:
return OFBadMatchCode.BAD_PREREQ;
case DUP_FIELD_VAL:
return OFBadMatchCode.DUP_FIELD;
case EPERM_VAL:
return OFBadMatchCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBadMatchCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedCodeSerializerVer14.java | 30 |
public class OFMeterModFailedCodeSerializerVer13 {
public final static short UNKNOWN_VAL = (short) 0x0;
public final static short METER_EXISTS_VAL = (short) 0x1;
public final static short INVALID_METER_VAL = (short) 0x2;
public final static short UNKNOWN_METER_VAL = (short) 0x3;
public final static short BAD_COMMAND_VAL = (short) 0x4;
public final static short BAD_FLAGS_VAL = (short) 0x5;
public final static short BAD_RATE_VAL = (short) 0x6;
public final static short BAD_BURST_VAL = (short) 0x7;
public final static short BAD_BAND_VAL = (short) 0x8;
public final static short BAD_BAND_VALUE_VAL = (short) 0x9;
public final static short OUT_OF_METERS_VAL = (short) 0xa;
public final static short OUT_OF_BANDS_VAL = (short) 0xb;
public static OFMeterModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFMeterModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFMeterModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFMeterModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFMeterModFailedCode.UNKNOWN;
case METER_EXISTS_VAL:
return OFMeterModFailedCode.METER_EXISTS;
case INVALID_METER_VAL:
return OFMeterModFailedCode.INVALID_METER;
case UNKNOWN_METER_VAL:
return OFMeterModFailedCode.UNKNOWN_METER;
case BAD_COMMAND_VAL:
return OFMeterModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFMeterModFailedCode.BAD_FLAGS;
case BAD_RATE_VAL:
return OFMeterModFailedCode.BAD_RATE;
case BAD_BURST_VAL:
return OFMeterModFailedCode.BAD_BURST;
case BAD_BAND_VAL:
return OFMeterModFailedCode.BAD_BAND;
case BAD_BAND_VALUE_VAL:
return OFMeterModFailedCode.BAD_BAND_VALUE;
case OUT_OF_METERS_VAL:
return OFMeterModFailedCode.OUT_OF_METERS;
case OUT_OF_BANDS_VAL:
return OFMeterModFailedCode.OUT_OF_BANDS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeterModFailedCode in version 1.3: " + val); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 166 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 106 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 108 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 106 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 111 |
System.out.println("Going after actions with ovxmatch="+ ovxMatch.toString());
for (OFAction act: this.getActions()) {
try {
if (act.getType().equals(OFActionType.SET_FIELD)) {
OFOxm<?> oxmField = ((OFActionSetField)act).getField();
act = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmField);
} else if (act.getType().equals(OFActionType.OUTPUT)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutputV3(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
} else if (act.getType().equals(OFActionType.SET_QUEUE)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionSetQueue(((OFActionSetQueue)act).getQueueId());
} else if (act.getType().equals(OFActionType.PUSH_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPushVlan(((OFActionPushVlan)act).getEthertype());
} else if (act.getType().equals(OFActionType.POP_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPopVlan();
}
((VirtualizableActionV3) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 149 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise() {
return advertise;
}
@Override
public OFPortMod.Builder setAdvertise(long advertise) {
this.advertise = advertise;
this.advertiseSet = true;
return this;
}
@Override
public List<OFPortModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFPortMod.Builder setProperties(List<OFPortModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 149 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise() {
return advertise;
}
@Override
public OFPortMod.Builder setAdvertise(long advertise) {
this.advertise = advertise;
this.advertiseSet = true;
return this;
}
@Override
public List<OFPortModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFPortMod.Builder setProperties(List<OFPortModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 149 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise() {
return advertise;
}
@Override
public OFPortMod.Builder setAdvertise(long advertise) {
this.advertise = advertise;
this.advertiseSet = true;
return this;
}
@Override
public List<OFPortModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFPortMod.Builder setProperties(List<OFPortModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 253 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 253 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGenericStatsRequest.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
@Override
public OFBsnGenericStatsRequest.Builder setTlvs(List<OFBsnTlv> tlvs) {
this.tlvs = tlvs;
this.tlvsSet = true;
return this;
}
//
@Override
public OFBsnGenericStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
List<OFBsnTlv> tlvs = this.tlvsSet ? this.tlvs : DEFAULT_TLVS;
if(tlvs == null)
throw new NullPointerException("Property tlvs must not be null");
return new OFBsnGenericStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 149 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise() {
return advertise;
}
@Override
public OFPortMod.Builder setAdvertise(long advertise) {
this.advertise = advertise;
this.advertiseSet = true;
return this;
}
@Override
public List<OFPortModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFPortMod.Builder setProperties(List<OFPortModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 283 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property advertise not supported in version 1.4");
}
@Override
public OFPortMod.Builder setAdvertise(long advertise) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property advertise not supported in version 1.4");
}
@Override
public List<OFPortModProp> getProperties() {
return properties;
}
@Override
public OFPortMod.Builder setProperties(List<OFPortModProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 174 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 321 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 321 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 321 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 321 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 321 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 174 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 174 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 174 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public OFDescStatsReply.Builder setMfrDesc(String mfrDesc) {
this.mfrDesc = mfrDesc;
this.mfrDescSet = true;
return this;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public OFDescStatsReply.Builder setHwDesc(String hwDesc) {
this.hwDesc = hwDesc;
this.hwDescSet = true;
return this;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public OFDescStatsReply.Builder setSwDesc(String swDesc) {
this.swDesc = swDesc;
this.swDescSet = true;
return this;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public OFDescStatsReply.Builder setSerialNum(String serialNum) {
this.serialNum = serialNum;
this.serialNumSet = true;
return this;
}
@Override
public String getDpDesc() {
return dpDesc;
}
@Override
public OFDescStatsReply.Builder setDpDesc(String dpDesc) {
this.dpDesc = dpDesc;
this.dpDescSet = true;
return this;
}
//
@Override
public OFDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 145 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 145 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setImageChecksum(String imageChecksum) {
this.imageChecksum = imageChecksum;
this.imageChecksumSet = true;
return this;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setStartupConfigChecksum(String startupConfigChecksum) {
this.startupConfigChecksum = startupConfigChecksum;
this.startupConfigChecksumSet = true;
return this;
}
@Override
public OFBsnImageDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String imageChecksum = this.imageChecksumSet ? this.imageChecksum : parentMessage.imageChecksum;
if(imageChecksum == null)
throw new NullPointerException("Property imageChecksum must not be null");
String startupConfigChecksum = this.startupConfigChecksumSet ? this.startupConfigChecksum : parentMessage.startupConfigChecksum;
if(startupConfigChecksum == null)
throw new NullPointerException("Property startupConfigChecksum must not be null");
//
return new OFBsnImageDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 462 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 457 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 456 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 479 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1147 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1937 |
switch (field.id) {
case IN_PORT:
return (this.wildcards & OFPFW_IN_PORT) != 0;
case ETH_DST:
return (this.wildcards & OFPFW_DL_DST) != 0;
case ETH_SRC:
return (this.wildcards & OFPFW_DL_SRC) != 0;
case ETH_TYPE:
return (this.wildcards & OFPFW_DL_TYPE) != 0;
case VLAN_VID:
return (this.wildcards & OFPFW_DL_VLAN) != 0;
case VLAN_PCP:
return (this.wildcards & OFPFW_DL_VLAN_PCP) != 0;
case ARP_OP:
return (this.wildcards & OFPFW_NW_PROTO) != 0;
case ARP_SPA:
return this.getIpv4SrcCidrMaskLen() <= 0;
case ARP_TPA:
return this.getIpv4DstCidrMaskLen() <= 0;
case IP_DSCP:
return (this.wildcards & OFPFW_NW_TOS) != 0;
case IP_PROTO:
return (this.wildcards & OFPFW_NW_PROTO) != 0;
case TCP_SRC:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case TCP_DST:
return (this.wildcards & OFPFW_TP_DST) != 0;
case UDP_SRC:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case UDP_DST:
return (this.wildcards & OFPFW_TP_DST) != 0;
case SCTP_SRC:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case SCTP_DST:
return (this.wildcards & OFPFW_TP_DST) != 0;
case ICMPV4_TYPE:
return (this.wildcards & OFPFW_TP_SRC) != 0;
case ICMPV4_CODE:
return (this.wildcards & OFPFW_TP_DST) != 0;
case IPV4_SRC:
return this.getIpv4SrcCidrMaskLen() <= 0;
case IPV4_DST:
return this.getIpv4DstCidrMaskLen() <= 0;
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFlagsSerializerVer14.java | 34 |
public class OFMeterFlagsSerializerVer13 {
public final static short KBPS_VAL = (short) 0x1;
public final static short PKTPS_VAL = (short) 0x2;
public final static short BURST_VAL = (short) 0x4;
public final static short STATS_VAL = (short) 0x8;
public static Set<OFMeterFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFMeterFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFMeterFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFMeterFlags> ofWireValue(short val) {
EnumSet<OFMeterFlags> set = EnumSet.noneOf(OFMeterFlags.class);
if((val & KBPS_VAL) != 0)
set.add(OFMeterFlags.KBPS);
if((val & PKTPS_VAL) != 0)
set.add(OFMeterFlags.PKTPS);
if((val & BURST_VAL) != 0)
set.add(OFMeterFlags.BURST);
if((val & STATS_VAL) != 0)
set.add(OFMeterFlags.STATS);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFMeterFlags> set) {
short wireValue = 0;
for(OFMeterFlags e: set) {
switch(e) {
case KBPS:
wireValue |= KBPS_VAL;
break;
case PKTPS:
wireValue |= PKTPS_VAL;
break;
case BURST:
wireValue |= BURST_VAL;
break;
case STATS:
wireValue |= STATS_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFMeterFlags in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 518 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 518 |
OFMeterStatsVer13 other = (OFMeterStatsVer13) obj;
if( meterId != other.meterId)
return false;
if( flowCount != other.flowCount)
return false;
if (packetInCount == null) {
if (other.packetInCount != null)
return false;
} else if (!packetInCount.equals(other.packetInCount))
return false;
if (byteInCount == null) {
if (other.byteInCount != null)
return false;
} else if (!byteInCount.equals(other.byteInCount))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if (bandStats == null) {
if (other.bandStats != null)
return false;
} else if (!bandStats.equals(other.bandStats))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (meterId ^ (meterId >>> 32));
result = prime * (int) (flowCount ^ (flowCount >>> 32));
result = prime * result + ((packetInCount == null) ? 0 : packetInCount.hashCode());
result = prime * result + ((byteInCount == null) ? 0 : byteInCount.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + ((bandStats == null) ? 0 : bandStats.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 702 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 754 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 754 |
OFPortDescVer10 other = (OFPortDescVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (config == null) {
if (other.config != null)
return false;
} else if (!config.equals(other.config))
return false;
if (state == null) {
if (other.state != null)
return false;
} else if (!state.equals(other.state))
return false;
if (curr == null) {
if (other.curr != null)
return false;
} else if (!curr.equals(other.curr))
return false;
if (advertised == null) {
if (other.advertised != null)
return false;
} else if (!advertised.equals(other.advertised))
return false;
if (supported == null) {
if (other.supported != null)
return false;
} else if (!supported.equals(other.supported))
return false;
if (peer == null) {
if (other.peer != null)
return false;
} else if (!peer.equals(other.peer))
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 230 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 230 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 230 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 230 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 230 |
return new OFBsnVportQInQVer10(
portNo,
ingressTpid,
ingressVlanId,
egressTpid,
egressVlanId,
ifName
);
}
}
static class Builder implements OFBsnVportQInQ.Builder {
// OF message fields
private boolean portNoSet;
private long portNo;
private boolean ingressTpidSet;
private int ingressTpid;
private boolean ingressVlanIdSet;
private int ingressVlanId;
private boolean egressTpidSet;
private int egressTpid;
private boolean egressVlanIdSet;
private int egressVlanId;
private boolean ifNameSet;
private String ifName;
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 141 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 141 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaUpload.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public OFBsnLuaUpload.Builder setFlags(Set<OFBsnLuaUploadFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getFilename() {
return filename;
}
@Override
public OFBsnLuaUpload.Builder setFilename(String filename) {
this.filename = filename;
this.filenameSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaUpload.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaUpload build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFBsnLuaUploadFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String filename = this.filenameSet ? this.filename : parentMessage.filename;
if(filename == null)
throw new NullPointerException("Property filename must not be null");
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnLuaUploadVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 965 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 965 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 965 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 1011 |
} else if (!collisions.equals(other.collisions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((rxPackets == null) ? 0 : rxPackets.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((rxBytes == null) ? 0 : rxBytes.hashCode());
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((rxDropped == null) ? 0 : rxDropped.hashCode());
result = prime * result + ((txDropped == null) ? 0 : txDropped.hashCode());
result = prime * result + ((rxErrors == null) ? 0 : rxErrors.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode());
result = prime * result + ((rxFrameErr == null) ? 0 : rxFrameErr.hashCode());
result = prime * result + ((rxOverErr == null) ? 0 : rxOverErr.hashCode());
result = prime * result + ((rxCrcErr == null) ? 0 : rxCrcErr.hashCode());
result = prime * result + ((collisions == null) ? 0 : collisions.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 251 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 251 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setImageChecksum(String imageChecksum) {
this.imageChecksum = imageChecksum;
this.imageChecksumSet = true;
return this;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setStartupConfigChecksum(String startupConfigChecksum) {
this.startupConfigChecksum = startupConfigChecksum;
this.startupConfigChecksumSet = true;
return this;
}
//
@Override
public OFBsnImageDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String imageChecksum = this.imageChecksumSet ? this.imageChecksum : DEFAULT_IMAGE_CHECKSUM;
if(imageChecksum == null)
throw new NullPointerException("Property imageChecksum must not be null");
String startupConfigChecksum = this.startupConfigChecksumSet ? this.startupConfigChecksum : DEFAULT_STARTUP_CONFIG_CHECKSUM;
if(startupConfigChecksum == null)
throw new NullPointerException("Property startupConfigChecksum must not be null");
return new OFBsnImageDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 172 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 326 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 172 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 326 |
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts() {
return ports;
}
@Override
public OFFeaturesReply.Builder setPorts(List<OFPortDesc> ports) {
this.ports = ports;
this.portsSet = true;
return this;
}
@Override
public Set<OFActionType> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 146 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 267 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1");
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.1");
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.1");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 146 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 267 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.2");
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.2");
}
@Override
public long getDurationNsec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.2");
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationNsec not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 839 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 861 |
} else if (!flags.equals(other.flags))
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (instructions == null) {
if (other.instructions != null)
return false;
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 356 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFPacketIn.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 359 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 359 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 359 |
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : parentMessage.config;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null");
Set<OFPortFeatures> curr = this.currSet ? this.curr : parentMessage.curr;
if(curr == null)
throw new NullPointerException("Property curr must not be null");
Set<OFPortFeatures> advertised = this.advertisedSet ? this.advertised : parentMessage.advertised;
if(advertised == null)
throw new NullPointerException("Property advertised must not be null");
Set<OFPortFeatures> supported = this.supportedSet ? this.supported : parentMessage.supported;
if(supported == null)
throw new NullPointerException("Property supported must not be null");
Set<OFPortFeatures> peer = this.peerSet ? this.peer : parentMessage.peer;
if(peer == null)
throw new NullPointerException("Property peer must not be null");
long currSpeed = this.currSpeedSet ? this.currSpeed : parentMessage.currSpeed;
long maxSpeed = this.maxSpeedSet ? this.maxSpeed : parentMessage.maxSpeed;
//
return new OFPortDescVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 156 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 289 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 284 |
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStats.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFMeterStats.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public OFMeterStats.Builder setPacketInCount(U64 packetInCount) {
this.packetInCount = packetInCount;
this.packetInCountSet = true;
return this;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public OFMeterStats.Builder setByteInCount(U64 byteInCount) {
this.byteInCount = byteInCount;
this.byteInCountSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFMeterStats.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFMeterStats.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFMeterStats.Builder setBandStats(List<OFMeterBandStats> bandStats) {
this.bandStats = bandStats;
this.bandStatsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterStats build() {
long meterId = this.meterIdSet ? this.meterId : parentMessage.meterId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 159 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 294 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableFeatures.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableFeatures.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableFeatures.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableFeatures.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableFeatures.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableFeatures.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFTableFeatures.Builder setProperties(List<OFTableFeatureProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFTableFeatures build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 289 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 284 |
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStats.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFMeterStats.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public OFMeterStats.Builder setPacketInCount(U64 packetInCount) {
this.packetInCount = packetInCount;
this.packetInCountSet = true;
return this;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public OFMeterStats.Builder setByteInCount(U64 byteInCount) {
this.byteInCount = byteInCount;
this.byteInCountSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFMeterStats.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFMeterStats.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFMeterStats.Builder setBandStats(List<OFMeterBandStats> bandStats) {
this.bandStats = bandStats;
this.bandStatsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterStats build() {
long meterId = this.meterIdSet ? this.meterId : parentMessage.meterId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 159 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 294 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableFeatures.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableFeatures.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableFeatures.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableFeatures.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableFeatures.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableFeatures.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFTableFeatures.Builder setProperties(List<OFTableFeatureProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFTableFeatures build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 596 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 596 |
OFFeaturesReplyVer11 other = (OFFeaturesReplyVer11) obj;
if( xid != other.xid)
return false;
if (datapathId == null) {
if (other.datapathId != null)
return false;
} else if (!datapathId.equals(other.datapathId))
return false;
if( nBuffers != other.nBuffers)
return false;
if( nTables != other.nTables)
return false;
if (capabilities == null) {
if (other.capabilities != null)
return false;
} else if (!capabilities.equals(other.capabilities))
return false;
if( reserved != other.reserved)
return false;
if (ports == null) {
if (other.ports != null)
return false;
} else if (!ports.equals(other.ports))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((datapathId == null) ? 0 : datapathId.hashCode());
result = prime * (int) (nBuffers ^ (nBuffers >>> 32));
result = prime * result + nTables;
result = prime * result + ((capabilities == null) ? 0 : capabilities.hashCode());
result = prime * (int) (reserved ^ (reserved >>> 32));
result = prime * result + ((ports == null) ? 0 : ports.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 242 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 242 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaUpload.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public OFBsnLuaUpload.Builder setFlags(Set<OFBsnLuaUploadFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getFilename() {
return filename;
}
@Override
public OFBsnLuaUpload.Builder setFilename(String filename) {
this.filename = filename;
this.filenameSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaUpload.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaUpload build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFBsnLuaUploadFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
String filename = this.filenameSet ? this.filename : DEFAULT_FILENAME;
if(filename == null)
throw new NullPointerException("Property filename must not be null");
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnLuaUploadVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 590 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 590 |
OFFeaturesReplyVer13 other = (OFFeaturesReplyVer13) obj;
if( xid != other.xid)
return false;
if (datapathId == null) {
if (other.datapathId != null)
return false;
} else if (!datapathId.equals(other.datapathId))
return false;
if( nBuffers != other.nBuffers)
return false;
if( nTables != other.nTables)
return false;
if (auxiliaryId == null) {
if (other.auxiliaryId != null)
return false;
} else if (!auxiliaryId.equals(other.auxiliaryId))
return false;
if (capabilities == null) {
if (other.capabilities != null)
return false;
} else if (!capabilities.equals(other.capabilities))
return false;
if( reserved != other.reserved)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((datapathId == null) ? 0 : datapathId.hashCode());
result = prime * (int) (nBuffers ^ (nBuffers >>> 32));
result = prime * result + nTables;
result = prime * result + ((auxiliaryId == null) ? 0 : auxiliaryId.hashCode());
result = prime * result + ((capabilities == null) ? 0 : capabilities.hashCode());
result = prime * (int) (reserved ^ (reserved >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupCapabilitiesSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupCapabilitiesSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupCapabilitiesSerializerVer14.java | 34 |
public class OFGroupCapabilitiesSerializerVer12 {
public final static int SELECT_WEIGHT_VAL = 0x1;
public final static int SELECT_LIVENESS_VAL = 0x2;
public final static int CHAINING_VAL = 0x4;
public final static int CHAINING_CHECKS_VAL = 0x8;
public static Set<OFGroupCapabilities> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFGroupCapabilities> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFGroupCapabilities> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFGroupCapabilities> ofWireValue(int val) {
EnumSet<OFGroupCapabilities> set = EnumSet.noneOf(OFGroupCapabilities.class);
if((val & SELECT_WEIGHT_VAL) != 0)
set.add(OFGroupCapabilities.SELECT_WEIGHT);
if((val & SELECT_LIVENESS_VAL) != 0)
set.add(OFGroupCapabilities.SELECT_LIVENESS);
if((val & CHAINING_VAL) != 0)
set.add(OFGroupCapabilities.CHAINING);
if((val & CHAINING_CHECKS_VAL) != 0)
set.add(OFGroupCapabilities.CHAINING_CHECKS);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFGroupCapabilities> set) {
int wireValue = 0;
for(OFGroupCapabilities e: set) {
switch(e) {
case SELECT_WEIGHT:
wireValue |= SELECT_WEIGHT_VAL;
break;
case SELECT_LIVENESS:
wireValue |= SELECT_LIVENESS_VAL;
break;
case CHAINING:
wireValue |= CHAINING_VAL;
break;
case CHAINING_CHECKS:
wireValue |= CHAINING_CHECKS_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFGroupCapabilities in version 1.2: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 704 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int importance = this.importanceSet ? this.importance : DEFAULT_IMPORTANCE;
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowAddVer14( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 410 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 272 |
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(this.getXid(),this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(),this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions());
} else {
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(this.getXid(), this.getCookie(), this.getCookieMask(), this.getTableId(), this.getIdleTimeout(), this.getHardTimeout(), this.getPriority(), this.getBufferId(), this.getOutPort(), this.getOutGroup(), this.getFlags(), this.getMatch(), this.getInstructions());
}
return flowMod;
}
public Map<String, Object> toMap() {
final Map<String, Object> map = new LinkedHashMap<String, Object>();
if (this.match != null) {
map.put("match", OVXFactoryInst.myOVXFactory.buildOVXMatchV3(match).toMap());
}
LinkedList<Map<String, Object>> actions = new LinkedList<Map<String, Object>>();
for (OFAction act : this.getActions()) {
try {
actions.add(OVXUtil.actionToMap(act));
} catch (UnknownActionException e) {
log.warn("Ignoring action {} because {}", act, e.getMessage());
}
}
map.put("instructionApplyActionsList", actions); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/db/DBManager.java | 451 |
| net/onrc/openvirtex/db/DBManager.java | 538 |
.get(TenantHandler.PATH);
for (Map<String, Object> hop : path) {
// Fetch link
Long srcDpid = (Long) hop.get(TenantHandler.SRC_DPID);
Short srcPort = ((Integer) hop.get(TenantHandler.SRC_PORT))
.shortValue();
Long dstDpid = (Long) hop.get(TenantHandler.DST_DPID);
Short dstPort = ((Integer) hop.get(TenantHandler.DST_PORT))
.shortValue();
DPIDandPortPair dpp = new DPIDandPortPair(new DPIDandPort(
srcDpid, OFPort.ofShort(srcPort)), new DPIDandPort(dstDpid, OFPort.ofShort(dstPort)));
// Register link in current manager
mngr.registerLink(dpp);
// Update list of managers that wait for this link
List<OVXNetworkManager> mngrs = this.linkToMngr.get(dpp);
if (mngrs == null) {
this.linkToMngr
.put(dpp, new ArrayList<OVXNetworkManager>());
}
this.linkToMngr.get(dpp).add(mngr);
// Register src/dst switches of this link
mngr.registerSwitch(srcDpid);
mngr.registerSwitch(dstDpid);
// Update list of managers that wait for these switches
mngrs = this.dpidToMngr.get(srcDpid);
if (mngrs == null) {
this.dpidToMngr.put(srcDpid,
new ArrayList<OVXNetworkManager>());
}
this.dpidToMngr.get(srcDpid).add(mngr);
mngrs = this.dpidToMngr.get(dstDpid);
if (mngrs == null) {
this.dpidToMngr.put(dstDpid,
new ArrayList<OVXNetworkManager>());
}
this.dpidToMngr.get(dstDpid).add(mngr);
}
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 901 |
StringBuilder b = new StringBuilder("OFFlowAddVer14(");
b.append("xid=").append(xid);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("cookieMask=").append(cookieMask);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("bufferId=").append(bufferId);
b.append(", ");
b.append("outPort=").append(outPort);
b.append(", ");
b.append("outGroup=").append(outGroup);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("importance=").append(importance);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("instructions=").append(instructions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 176 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 343 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 359 |
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFPacketIn.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPort not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 150 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 150 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 150 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 150 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 150 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 277 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 687 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 687 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 731 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
//
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 687 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 687 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 727 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
//
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowDeleteStrictVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 687 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 687 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 726 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
//
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowDeleteVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 687 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 687 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 727 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
//
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowModifyStrictVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 687 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 687 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 725 |
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
//
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowModifyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 131 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 131 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFGroupType groupType = this.groupTypeSet ? this.groupType : parentMessage.groupType;
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : parentMessage.buckets;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
//
return new OFGroupAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 131 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 131 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFGroupType groupType = this.groupTypeSet ? this.groupType : parentMessage.groupType;
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : parentMessage.buckets;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
//
return new OFGroupDeleteVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 131 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 131 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFGroupType groupType = this.groupTypeSet ? this.groupType : parentMessage.groupType;
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : parentMessage.buckets;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
//
return new OFGroupModifyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableClearRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : parentMessage.checksumMask;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
//
return new OFBsnGentableClearRequestVer13( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 312 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 217 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 217 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 217 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 217 |
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV1)this.match).getEthSrc().getBytes(),
((OFMatchV1)this.match).getEthDst().getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
lUtils.rewriteMatch(this.getMatch());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), this);
throw new DroppedMessageException();
}
}
}
}
} catch (NetworkMappingException e) {
log.warn(
"OVXFlowMod. Error retrieving the network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
} catch (DroppedMessageException e) {
log.warn(
"OVXFlowMod. Error retrieving flowId in network with id {} for flowMod {}. Dropping packet...",
this.sw.getTenantId(), this);
}
this.actions=this.approvedActions;
if (pflag) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 968 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 968 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 968 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 968 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 968 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 968 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 968 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 968 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 968 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 968 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 1012 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 1008 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 1007 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 1008 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 1006 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 986 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 986 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 986 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 986 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 986 |
} else if (!flags.equals(other.flags))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (instructions == null) {
if (other.instructions != null)
return false;
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((cookieMask == null) ? 0 : cookieMask.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + priority;
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode());
result = prime * result + ((outGroup == null) ? 0 : outGroup.hashCode());
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 176 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 343 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 359 |
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFPacketIn.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketIn.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPort getInPort()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 362 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 362 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 362 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 362 |
}
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
OFPort loopbackPortNo = this.loopbackPortNoSet ? this.loopbackPortNo : parentMessage.loopbackPortNo;
if(loopbackPortNo == null)
throw new NullPointerException("Property loopbackPortNo must not be null");
MacAddress localMac = this.localMacSet ? this.localMac : parentMessage.localMac;
if(localMac == null)
throw new NullPointerException("Property localMac must not be null");
MacAddress nhMac = this.nhMacSet ? this.nhMac : parentMessage.nhMac;
if(nhMac == null)
throw new NullPointerException("Property nhMac must not be null");
IPv4Address srcIp = this.srcIpSet ? this.srcIp : parentMessage.srcIp;
if(srcIp == null)
throw new NullPointerException("Property srcIp must not be null");
IPv4Address dstIp = this.dstIpSet ? this.dstIp : parentMessage.dstIp;
if(dstIp == null)
throw new NullPointerException("Property dstIp must not be null");
short dscp = this.dscpSet ? this.dscp : parentMessage.dscp;
short ttl = this.ttlSet ? this.ttl : parentMessage.ttl;
long vpn = this.vpnSet ? this.vpn : parentMessage.vpn;
long rateLimit = this.rateLimitSet ? this.rateLimit : parentMessage.rateLimit;
String ifName = this.ifNameSet ? this.ifName : parentMessage.ifName;
if(ifName == null)
throw new NullPointerException("Property ifName must not be null");
//
return new OFBsnVportL2GreVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 152 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 152 |
BuilderWithParent(OFGroupStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 149 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 149 |
BuilderWithParent(OFMeterStatsVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStats.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFMeterStats.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public OFMeterStats.Builder setPacketInCount(U64 packetInCount) {
this.packetInCount = packetInCount;
this.packetInCountSet = true;
return this;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public OFMeterStats.Builder setByteInCount(U64 byteInCount) {
this.byteInCount = byteInCount;
this.byteInCountSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFMeterStats.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFMeterStats.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFMeterStats.Builder setBandStats(List<OFMeterBandStats> bandStats) {
this.bandStats = bandStats;
this.bandStatsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 155 |
BuilderWithParent(OFTableFeaturesVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableFeatures.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableFeatures.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableFeatures.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableFeatures.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableFeatures.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableFeatures.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFTableFeatures.Builder setProperties(List<OFTableFeatureProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFConfigFlagsSerializerVer10.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFConfigFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFConfigFlagsSerializerVer14.java | 34 |
public class OFConfigFlagsSerializerVer10 {
public final static short FRAG_NORMAL_VAL = (short) 0x0;
public final static short FRAG_DROP_VAL = (short) 0x1;
public final static short FRAG_REASM_VAL = (short) 0x2;
public final static short FRAG_MASK_VAL = (short) 0x3;
public static Set<OFConfigFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFConfigFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFConfigFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFConfigFlags> ofWireValue(short val) {
EnumSet<OFConfigFlags> set = EnumSet.noneOf(OFConfigFlags.class);
if((val & FRAG_MASK_VAL) == FRAG_NORMAL_VAL)
set.add(OFConfigFlags.FRAG_NORMAL);
else if((val & FRAG_MASK_VAL) == FRAG_DROP_VAL)
set.add(OFConfigFlags.FRAG_DROP);
else if((val & FRAG_MASK_VAL) == FRAG_REASM_VAL)
set.add(OFConfigFlags.FRAG_REASM);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFConfigFlags> set) {
short wireValue = 0;
for(OFConfigFlags e: set) {
switch(e) {
case FRAG_NORMAL:
wireValue |= FRAG_NORMAL_VAL;
break;
case FRAG_DROP:
wireValue |= FRAG_DROP_VAL;
break;
case FRAG_REASM:
wireValue |= FRAG_REASM_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFConfigFlags in version 1.0: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 59 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 63 |
public static OFType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFType e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFType e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFType ofWireValue(byte val) {
switch(val) {
case HELLO_VAL:
return OFType.HELLO;
case ERROR_VAL:
return OFType.ERROR;
case ECHO_REQUEST_VAL:
return OFType.ECHO_REQUEST;
case ECHO_REPLY_VAL:
return OFType.ECHO_REPLY;
case EXPERIMENTER_VAL:
return OFType.EXPERIMENTER;
case FEATURES_REQUEST_VAL:
return OFType.FEATURES_REQUEST;
case FEATURES_REPLY_VAL:
return OFType.FEATURES_REPLY;
case GET_CONFIG_REQUEST_VAL:
return OFType.GET_CONFIG_REQUEST;
case GET_CONFIG_REPLY_VAL:
return OFType.GET_CONFIG_REPLY;
case SET_CONFIG_VAL:
return OFType.SET_CONFIG;
case PACKET_IN_VAL:
return OFType.PACKET_IN;
case FLOW_REMOVED_VAL:
return OFType.FLOW_REMOVED;
case PORT_STATUS_VAL:
return OFType.PORT_STATUS;
case PACKET_OUT_VAL:
return OFType.PACKET_OUT;
case FLOW_MOD_VAL:
return OFType.FLOW_MOD;
case GROUP_MOD_VAL:
return OFType.GROUP_MOD;
case PORT_MOD_VAL:
return OFType.PORT_MOD;
case TABLE_MOD_VAL:
return OFType.TABLE_MOD;
case STATS_REQUEST_VAL:
return OFType.STATS_REQUEST;
case STATS_REPLY_VAL:
return OFType.STATS_REPLY;
case BARRIER_REQUEST_VAL:
return OFType.BARRIER_REQUEST;
case BARRIER_REPLY_VAL:
return OFType.BARRIER_REPLY;
case QUEUE_GET_CONFIG_REQUEST_VAL:
return OFType.QUEUE_GET_CONFIG_REQUEST;
case QUEUE_GET_CONFIG_REPLY_VAL:
return OFType.QUEUE_GET_CONFIG_REPLY;
case ROLE_REQUEST_VAL:
return OFType.ROLE_REQUEST;
case ROLE_REPLY_VAL:
return OFType.ROLE_REPLY; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 735 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 731 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 730 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 731 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 729 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowAddVer11( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPortStatusVer10.java | 64 |
| net/onrc/openvirtex/messages/ver13/OVXPortStatusVer13.java | 56 |
PhysicalPort p = sw.getPort(this.desc.getPortNo().getShortPortNumber());
if (p == null) {
handlePortAdd(sw, p);
return;
}
log.info("Received {} from switch {}", this.toString(),
sw.getSwitchId());
LinkPair<PhysicalLink> pair = p.getLink();
try {
Set<Integer> vnets = map.listVirtualNetworks().keySet();
for (Integer tenantId : vnets) {
/* handle vLinks/routes containing phyLink to/from this port. */
if ((pair != null) && (pair.exists())) {
handleLinkChange(sw, map, pair, tenantId);
}
List<Map<Integer, OVXPort>> vports = p.getOVXPorts(tenantId);
/* cycle through all OVXPorts for this port. */
Iterator<Map<Integer, OVXPort>> pItr = vports.iterator();
while (pItr.hasNext()) {
Map<Integer, OVXPort> mp = pItr.next();
if (mp == null) {
continue;
}
for (Map.Entry<Integer, OVXPort> pMap : mp.entrySet()) {
OVXPort vport = pMap.getValue();
if (vport == null) {
continue;
}
if (isReason(OFPortReason.DELETE)) {
/* try to remove OVXPort, vLinks, routes */
vport.unMapHost();
vport.handlePortDelete(this);
sw.removePort(p);
} else if (isReason(OFPortReason.MODIFY)) {
if (isState(OFPortState.LINK_DOWN)) {
/* set ports as edge, but don't remove vLinks */
vport.handlePortDisable(this);
} else if (!isState(OFPortState.LINK_DOWN)
&& ((OFPortStateSerializerVer10.toWireValue(p.getState()) & OFPortStateSerializerVer10.LINK_DOWN_VAL | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 271 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 275 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 274 |
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(this.getXid(), this.getCookie(), this.getCookieMask(), this.getTableId(), this.getIdleTimeout(), this.getHardTimeout(), this.getPriority(), this.getBufferId(), this.getOutPort(), this.getOutGroup(), this.getFlags(), this.getMatch(), this.getInstructions());
}
return flowMod;
}
public Map<String, Object> toMap() {
final Map<String, Object> map = new LinkedHashMap<String, Object>();
if (this.match != null) {
map.put("match", OVXFactoryInst.myOVXFactory.buildOVXMatchV3(match).toMap());
}
LinkedList<Map<String, Object>> actions = new LinkedList<Map<String, Object>>();
for (OFAction act : this.getActions()) {
try {
actions.add(OVXUtil.actionToMap(act));
} catch (UnknownActionException e) {
log.warn("Ignoring action {} because {}", act, e.getMessage());
}
}
map.put("actionsList", actions);
map.put("priority", String.valueOf(this.getPriority()));
return map;
}
public void setVirtualCookie() {
long tmp = this.ovxCookie;
this.ovxCookie = this.cookie.getValue();
this.cookie = U64.of(tmp);
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 925 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 969 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 965 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 964 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 965 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 963 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 941 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 941 |
OFFlowAddVer11 other = (OFFlowAddVer11) obj;
if( xid != other.xid)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (cookieMask == null) {
if (other.cookieMask != null)
return false;
} else if (!cookieMask.equals(other.cookieMask))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if( priority != other.priority)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
if (outGroup == null) {
if (other.outGroup != null)
return false;
} else if (!outGroup.equals(other.outGroup))
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (match == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 227 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 227 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 227 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
//
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.groupTypeSet)
throw new IllegalStateException("Property groupType doesn't have default value -- must be set");
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : DEFAULT_GROUP_ID;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : DEFAULT_BUCKETS;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
return new OFGroupAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 227 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 227 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 227 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
//
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.groupTypeSet)
throw new IllegalStateException("Property groupType doesn't have default value -- must be set");
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : DEFAULT_GROUP_ID;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : DEFAULT_BUCKETS;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
return new OFGroupDeleteVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 227 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 227 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 227 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
//
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.groupTypeSet)
throw new IllegalStateException("Property groupType doesn't have default value -- must be set");
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : DEFAULT_GROUP_ID;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : DEFAULT_BUCKETS;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
return new OFGroupModifyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 235 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 235 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
//
@Override
public OFBsnGentableClearRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : DEFAULT_CHECKSUM;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : DEFAULT_CHECKSUM_MASK;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
return new OFBsnGentableClearRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModVer13.java | 137 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModVer13.java | 248 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.METER_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public int getCommand() {
return command;
}
@Override
public OFMeterMod.Builder setCommand(int command) {
this.command = command;
this.commandSet = true;
return this;
}
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterMod.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterMod.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getMeters() {
return meters;
}
@Override
public OFMeterMod.Builder setMeters(List<OFMeterBand> meters) {
this.meters = meters;
this.metersSet = true;
return this;
}
@Override
public List<OFMeterBand> getBands()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property bands not supported in version 1.3");
}
@Override
public OFMeterMod.Builder setBands(List<OFMeterBand> bands) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property bands not supported in version 1.3");
}
@Override
public OFMeterMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModVer14.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModVer14.java | 248 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.METER_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public int getCommand() {
return command;
}
@Override
public OFMeterMod.Builder setCommand(int command) {
this.command = command;
this.commandSet = true;
return this;
}
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterMod.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterMod.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getMeters()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property meters not supported in version 1.4");
}
@Override
public OFMeterMod.Builder setMeters(List<OFMeterBand> meters) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property meters not supported in version 1.4");
}
@Override
public List<OFMeterBand> getBands() {
return bands;
}
@Override
public OFMeterMod.Builder setBands(List<OFMeterBand> bands) {
this.bands = bands;
this.bandsSet = true;
return this;
}
@Override
public OFMeterMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 804 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 804 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 839 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 861 |
if( hardTimeout != other.hardTimeout)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (instructions == null) {
if (other.instructions != null)
return false;
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 153 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 280 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 280 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 280 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 280 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 280 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 153 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 153 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setEnabled(boolean enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnSetPktinSuppressionRequest.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
//
@Override
public OFBsnSetPktinSuppressionRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 165 |
BuilderWithParent(OFQueueStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 554 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 554 |
OFAggregateStatsRequestVer10 other = (OFAggregateStatsRequestVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 485 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 480 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 480 |
OFQueueStatsEntryVer10 other = (OFQueueStatsEntryVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( queueId != other.queueId)
return false;
if (txBytes == null) {
if (other.txBytes != null)
return false;
} else if (!txBytes.equals(other.txBytes))
return false;
if (txPackets == null) {
if (other.txPackets != null)
return false;
} else if (!txPackets.equals(other.txPackets))
return false;
if (txErrors == null) {
if (other.txErrors != null)
return false;
} else if (!txErrors.equals(other.txErrors))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * (int) (queueId ^ (queueId >>> 32));
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 132 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 132 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 132 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 132 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId;
//
return new OFQueueStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 488 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 488 |
OFGroupStatsEntryVer11 other = (OFGroupStatsEntryVer11) obj;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
if( refCount != other.refCount)
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (bucketStats == null) {
if (other.bucketStats != null)
return false;
} else if (!bucketStats.equals(other.bucketStats))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((group == null) ? 0 : group.hashCode());
result = prime * (int) (refCount ^ (refCount >>> 32));
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * result + ((bucketStats == null) ? 0 : bucketStats.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 515 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 515 |
OFBsnGentableEntryAddVer13 other = (OFBsnGentableEntryAddVer13) obj;
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
if (value == null) {
if (other.value != null)
return false;
} else if (!value.equals(other.value))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((checksum == null) ? 0 : checksum.hashCode());
result = prime * result + ((key == null) ? 0 : key.hashCode());
result = prime * result + ((value == null) ? 0 : value.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 532 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 532 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 532 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 532 |
OFBsnGentableEntryDescStatsRequestVer13 other = (OFBsnGentableEntryDescStatsRequestVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
if (checksumMask == null) {
if (other.checksumMask != null)
return false;
} else if (!checksumMask.equals(other.checksumMask))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((checksum == null) ? 0 : checksum.hashCode());
result = prime * result + ((checksumMask == null) ? 0 : checksumMask.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 862 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 862 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 862 |
StringBuilder b = new StringBuilder("OFPortStatsEntryVer10(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("rxPackets=").append(rxPackets);
b.append(", ");
b.append("txPackets=").append(txPackets);
b.append(", ");
b.append("rxBytes=").append(rxBytes);
b.append(", ");
b.append("txBytes=").append(txBytes);
b.append(", ");
b.append("rxDropped=").append(rxDropped);
b.append(", ");
b.append("txDropped=").append(txDropped);
b.append(", ");
b.append("rxErrors=").append(rxErrors);
b.append(", ");
b.append("txErrors=").append(txErrors);
b.append(", ");
b.append("rxFrameErr=").append(rxFrameErr);
b.append(", ");
b.append("rxOverErr=").append(rxOverErr);
b.append(", ");
b.append("rxCrcErr=").append(rxCrcErr);
b.append(", ");
b.append("collisions=").append(collisions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 905 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 905 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 905 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 947 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 888 |
} else if (!portNo.equals(other.portNo))
return false;
if (rxPackets == null) {
if (other.rxPackets != null)
return false;
} else if (!rxPackets.equals(other.rxPackets))
return false;
if (txPackets == null) {
if (other.txPackets != null)
return false;
} else if (!txPackets.equals(other.txPackets))
return false;
if (rxBytes == null) {
if (other.rxBytes != null)
return false;
} else if (!rxBytes.equals(other.rxBytes))
return false;
if (txBytes == null) {
if (other.txBytes != null)
return false;
} else if (!txBytes.equals(other.txBytes))
return false;
if (rxDropped == null) {
if (other.rxDropped != null)
return false;
} else if (!rxDropped.equals(other.rxDropped))
return false;
if (txDropped == null) {
if (other.txDropped != null)
return false;
} else if (!txDropped.equals(other.txDropped))
return false;
if (rxErrors == null) {
if (other.rxErrors != null)
return false;
} else if (!rxErrors.equals(other.rxErrors))
return false;
if (txErrors == null) {
if (other.txErrors != null)
return false;
} else if (!txErrors.equals(other.txErrors))
return false;
if (rxFrameErr == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 931 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 927 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 926 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 927 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 925 |
StringBuilder b = new StringBuilder("OFFlowAddVer11(");
b.append("xid=").append(xid);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("cookieMask=").append(cookieMask);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("bufferId=").append(bufferId);
b.append(", ");
b.append("outPort=").append(outPort);
b.append(", ");
b.append("outGroup=").append(outGroup);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("instructions=").append(instructions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 571 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 571 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 571 |
}
//
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : DEFAULT_CONFIG;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : DEFAULT_STATE;
if(state == null)
throw new NullPointerException("Property state must not be null");
Set<OFPortFeatures> curr = this.currSet ? this.curr : DEFAULT_CURR;
if(curr == null)
throw new NullPointerException("Property curr must not be null");
Set<OFPortFeatures> advertised = this.advertisedSet ? this.advertised : DEFAULT_ADVERTISED;
if(advertised == null)
throw new NullPointerException("Property advertised must not be null");
Set<OFPortFeatures> supported = this.supportedSet ? this.supported : DEFAULT_SUPPORTED;
if(supported == null)
throw new NullPointerException("Property supported must not be null");
Set<OFPortFeatures> peer = this.peerSet ? this.peer : DEFAULT_PEER;
if(peer == null)
throw new NullPointerException("Property peer must not be null");
long currSpeed = this.currSpeedSet ? this.currSpeed : DEFAULT_CURR_SPEED;
long maxSpeed = this.maxSpeedSet ? this.maxSpeed : DEFAULT_MAX_SPEED;
return new OFPortDescVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 814 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 814 |
StringBuilder b = new StringBuilder("OFBsnLacpConvergenceNotifVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("convergenceStatus=").append(convergenceStatus);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("actorSysPriority=").append(actorSysPriority);
b.append(", ");
b.append("actorSysMac=").append(actorSysMac);
b.append(", ");
b.append("actorPortPriority=").append(actorPortPriority);
b.append(", ");
b.append("actorPortNum=").append(actorPortNum);
b.append(", ");
b.append("actorKey=").append(actorKey);
b.append(", ");
b.append("partnerSysPriority=").append(partnerSysPriority);
b.append(", ");
b.append("partnerSysMac=").append(partnerSysMac);
b.append(", ");
b.append("partnerPortPriority=").append(partnerPortPriority);
b.append(", ");
b.append("partnerPortNum=").append(partnerPortNum);
b.append(", ");
b.append("partnerKey=").append(partnerKey);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 289 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 289 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 156 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFGroupStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFGroupStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 284 |
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStats.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFMeterStats.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public OFMeterStats.Builder setPacketInCount(U64 packetInCount) {
this.packetInCount = packetInCount;
this.packetInCountSet = true;
return this;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public OFMeterStats.Builder setByteInCount(U64 byteInCount) {
this.byteInCount = byteInCount;
this.byteInCountSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFMeterStats.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFMeterStats.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFMeterStats.Builder setBandStats(List<OFMeterBandStats> bandStats) {
this.bandStats = bandStats;
this.bandStatsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 284 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 153 |
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStats.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFMeterStats.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public OFMeterStats.Builder setPacketInCount(U64 packetInCount) {
this.packetInCount = packetInCount;
this.packetInCountSet = true;
return this;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public OFMeterStats.Builder setByteInCount(U64 byteInCount) {
this.byteInCount = byteInCount;
this.byteInCountSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFMeterStats.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFMeterStats.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFMeterStats.Builder setBandStats(List<OFMeterBandStats> bandStats) {
this.bandStats = bandStats;
this.bandStatsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 159 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 294 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableFeatures.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableFeatures.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableFeatures.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableFeatures.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableFeatures.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableFeatures.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFTableFeatures.Builder setProperties(List<OFTableFeatureProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 294 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 159 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableFeatures.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableFeatures.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public OFTableFeatures.Builder setMetadataMatch(U64 metadataMatch) {
this.metadataMatch = metadataMatch;
this.metadataMatchSet = true;
return this;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public OFTableFeatures.Builder setMetadataWrite(U64 metadataWrite) {
this.metadataWrite = metadataWrite;
this.metadataWriteSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableFeatures.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableFeatures.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFTableFeatures.Builder setProperties(List<OFTableFeatureProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 622 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 622 |
return new OFFlowStatsEntryVer11(
tableId,
durationSec,
durationNsec,
priority,
idleTimeout,
hardTimeout,
cookie,
packetCount,
byteCount,
match,
instructions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFFlowStatsEntry> {
@Override
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6);
U64 cookie = U64.ofRaw(bb.readLong());
U64 packetCount = U64.ofRaw(bb.readLong());
U64 byteCount = U64.ofRaw(bb.readLong());
Match match = ChannelUtilsVer11.readOFMatch(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 150 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 273 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 150 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 273 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 275 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortOptical.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortOptical.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortOptical.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortOptical.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortOptical.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public List<OFPortDescPropOpticalTransport> getDesc() {
return desc;
}
@Override
public OFPortOptical.Builder setDesc(List<OFPortDescPropOpticalTransport> desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortOptical build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 150 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 273 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 150 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 273 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableConfigSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableConfigSerializerVer12.java | 34 |
public class OFTableConfigSerializerVer11 {
public final static int TABLE_MISS_CONTROLLER_VAL = 0x0;
public final static int TABLE_MISS_CONTINUE_VAL = 0x1;
public final static int TABLE_MISS_DROP_VAL = 0x2;
public final static int TABLE_MISS_MASK_VAL = 0x3;
public static Set<OFTableConfig> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFTableConfig> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFTableConfig> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFTableConfig> ofWireValue(int val) {
EnumSet<OFTableConfig> set = EnumSet.noneOf(OFTableConfig.class);
if((val & TABLE_MISS_MASK_VAL) == TABLE_MISS_CONTROLLER_VAL)
set.add(OFTableConfig.TABLE_MISS_CONTROLLER);
else if((val & TABLE_MISS_MASK_VAL) == TABLE_MISS_CONTINUE_VAL)
set.add(OFTableConfig.TABLE_MISS_CONTINUE);
else if((val & TABLE_MISS_MASK_VAL) == TABLE_MISS_DROP_VAL)
set.add(OFTableConfig.TABLE_MISS_DROP);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFTableConfig> set) {
int wireValue = 0;
for(OFTableConfig e: set) {
switch(e) {
case TABLE_MISS_CONTROLLER:
wireValue |= TABLE_MISS_CONTROLLER_VAL;
break;
case TABLE_MISS_CONTINUE:
wireValue |= TABLE_MISS_CONTINUE_VAL;
break;
case TABLE_MISS_DROP:
wireValue |= TABLE_MISS_DROP_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFTableConfig in version 1.1: " + e); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/MonitoringHandler.java | 77 |
| net/onrc/openvirtex/api/service/handlers/TenantHandler.java | 179 |
this.put("getVirtualAddressMapping", new GetVirtualAddressMapping());
}
};
@Override
public String[] handledRequests() {
return this.handlers.keySet().toArray(new String[] {});
}
@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
public JSONRPC2Response process(final JSONRPC2Request req,
final MessageContext ctxt) {
final ApiHandler m = this.handlers.get(req.getMethod());
if (m != null) {
if (m.getType() != JSONRPC2ParamsType.NO_PARAMS
&& m.getType() != req.getParamsType()) {
return new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), req.getMethod()
+ " requires: " + m.getType() + "; got: "
+ req.getParamsType()), req.getID());
}
switch (m.getType()) {
case NO_PARAMS:
try {
return m.process(null);
} catch (SwitchMappingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
case ARRAY:
try {
return m.process(req.getPositionalParams());
} catch (SwitchMappingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
case OBJECT:
try {
return m.process(req.getNamedParams());
} catch (SwitchMappingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
default:
break;
}
}
return new JSONRPC2Response(JSONRPC2Error.METHOD_NOT_FOUND, req.getID());
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 57 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 59 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 63 |
public static OFType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFType e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFType e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFType ofWireValue(byte val) {
switch(val) {
case HELLO_VAL:
return OFType.HELLO;
case ERROR_VAL:
return OFType.ERROR;
case ECHO_REQUEST_VAL:
return OFType.ECHO_REQUEST;
case ECHO_REPLY_VAL:
return OFType.ECHO_REPLY;
case EXPERIMENTER_VAL:
return OFType.EXPERIMENTER;
case FEATURES_REQUEST_VAL:
return OFType.FEATURES_REQUEST;
case FEATURES_REPLY_VAL:
return OFType.FEATURES_REPLY;
case GET_CONFIG_REQUEST_VAL:
return OFType.GET_CONFIG_REQUEST;
case GET_CONFIG_REPLY_VAL:
return OFType.GET_CONFIG_REPLY;
case SET_CONFIG_VAL:
return OFType.SET_CONFIG;
case PACKET_IN_VAL:
return OFType.PACKET_IN;
case FLOW_REMOVED_VAL:
return OFType.FLOW_REMOVED;
case PORT_STATUS_VAL:
return OFType.PORT_STATUS;
case PACKET_OUT_VAL:
return OFType.PACKET_OUT;
case FLOW_MOD_VAL:
return OFType.FLOW_MOD;
case GROUP_MOD_VAL:
return OFType.GROUP_MOD;
case PORT_MOD_VAL:
return OFType.PORT_MOD;
case TABLE_MOD_VAL:
return OFType.TABLE_MOD;
case STATS_REQUEST_VAL:
return OFType.STATS_REQUEST;
case STATS_REPLY_VAL:
return OFType.STATS_REPLY;
case BARRIER_REQUEST_VAL:
return OFType.BARRIER_REQUEST;
case BARRIER_REPLY_VAL:
return OFType.BARRIER_REPLY;
case QUEUE_GET_CONFIG_REQUEST_VAL:
return OFType.QUEUE_GET_CONFIG_REQUEST;
case QUEUE_GET_CONFIG_REPLY_VAL:
return OFType.QUEUE_GET_CONFIG_REPLY; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 226 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 226 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
//
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : DEFAULT_QUEUE_ID;
return new OFQueueStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 30 |
public class OFTypeSerializerVer12 {
public final static byte HELLO_VAL = (byte) 0x0;
public final static byte ERROR_VAL = (byte) 0x1;
public final static byte ECHO_REQUEST_VAL = (byte) 0x2;
public final static byte ECHO_REPLY_VAL = (byte) 0x3;
public final static byte EXPERIMENTER_VAL = (byte) 0x4;
public final static byte FEATURES_REQUEST_VAL = (byte) 0x5;
public final static byte FEATURES_REPLY_VAL = (byte) 0x6;
public final static byte GET_CONFIG_REQUEST_VAL = (byte) 0x7;
public final static byte GET_CONFIG_REPLY_VAL = (byte) 0x8;
public final static byte SET_CONFIG_VAL = (byte) 0x9;
public final static byte PACKET_IN_VAL = (byte) 0xa;
public final static byte FLOW_REMOVED_VAL = (byte) 0xb;
public final static byte PORT_STATUS_VAL = (byte) 0xc;
public final static byte PACKET_OUT_VAL = (byte) 0xd;
public final static byte FLOW_MOD_VAL = (byte) 0xe;
public final static byte GROUP_MOD_VAL = (byte) 0xf;
public final static byte PORT_MOD_VAL = (byte) 0x10;
public final static byte TABLE_MOD_VAL = (byte) 0x11;
public final static byte STATS_REQUEST_VAL = (byte) 0x12;
public final static byte STATS_REPLY_VAL = (byte) 0x13;
public final static byte BARRIER_REQUEST_VAL = (byte) 0x14;
public final static byte BARRIER_REPLY_VAL = (byte) 0x15;
public final static byte QUEUE_GET_CONFIG_REQUEST_VAL = (byte) 0x16;
public final static byte QUEUE_GET_CONFIG_REPLY_VAL = (byte) 0x17;
public final static byte ROLE_REQUEST_VAL = (byte) 0x18;
public final static byte ROLE_REPLY_VAL = (byte) 0x19;
public static OFType readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 319 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 302 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 169 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFQueueStatsEntry.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFQueueStatsEntry.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public List<OFQueueStatsProp> getProperties()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 345 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 359 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 359 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 359 |
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : parentMessage.config;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null");
Set<OFPortFeatures> curr = this.currSet ? this.curr : parentMessage.curr;
if(curr == null)
throw new NullPointerException("Property curr must not be null");
Set<OFPortFeatures> advertised = this.advertisedSet ? this.advertised : parentMessage.advertised;
if(advertised == null)
throw new NullPointerException("Property advertised must not be null");
Set<OFPortFeatures> supported = this.supportedSet ? this.supported : parentMessage.supported;
if(supported == null)
throw new NullPointerException("Property supported must not be null");
Set<OFPortFeatures> peer = this.peerSet ? this.peer : parentMessage.peer;
if(peer == null)
throw new NullPointerException("Property peer must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 140 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 257 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFBsnVportQInQ build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 140 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 257 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFBsnVportQInQ build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 140 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 257 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFBsnVportQInQ build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 146 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 264 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryAdd.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryAdd.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryAdd.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryAdd.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBsnGentableEntryAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 140 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 257 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnVportQInQ build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 146 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 264 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryAdd.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryAdd.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryAdd.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryAdd.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBsnGentableEntryAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 140 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 257 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnVportQInQ build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropEthernetVer14.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropEthernetVer14.java | 252 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getCurr() {
return curr;
}
@Override
public OFPortDescPropEthernet.Builder setCurr(long curr) {
this.curr = curr;
this.currSet = true;
return this;
}
@Override
public long getAdvertised() {
return advertised;
}
@Override
public OFPortDescPropEthernet.Builder setAdvertised(long advertised) {
this.advertised = advertised;
this.advertisedSet = true;
return this;
}
@Override
public long getSupported() {
return supported;
}
@Override
public OFPortDescPropEthernet.Builder setSupported(long supported) {
this.supported = supported;
this.supportedSet = true;
return this;
}
@Override
public long getPeer() {
return peer;
}
@Override
public OFPortDescPropEthernet.Builder setPeer(long peer) {
this.peer = peer;
this.peerSet = true;
return this;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public OFPortDescPropEthernet.Builder setCurrSpeed(long currSpeed) {
this.currSpeed = currSpeed;
this.currSpeedSet = true;
return this;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public OFPortDescPropEthernet.Builder setMaxSpeed(long maxSpeed) {
this.maxSpeed = maxSpeed;
this.maxSpeedSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortDescPropEthernet build() {
long curr = this.currSet ? this.curr : parentMessage.curr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 133 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 133 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 133 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 133 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 133 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : parentMessage.slotNum;
//
return new OFBsnPduRxReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 133 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 133 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 133 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 133 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 133 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : parentMessage.slotNum;
//
return new OFBsnPduTxReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 128 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearReply.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public OFBsnGentableClearReply.Builder setDeletedCount(long deletedCount) {
this.deletedCount = deletedCount;
this.deletedCountSet = true;
return this;
}
@Override
public long getErrorCount() {
return errorCount;
}
@Override
public OFBsnGentableClearReply.Builder setErrorCount(long errorCount) {
this.errorCount = errorCount;
this.errorCountSet = true;
return this;
}
@Override
public OFBsnGentableClearReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long deletedCount = this.deletedCountSet ? this.deletedCount : parentMessage.deletedCount;
long errorCount = this.errorCountSet ? this.errorCount : parentMessage.errorCount;
//
return new OFBsnGentableClearReplyVer13( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 417 |
| net/onrc/openvirtex/messages/actions/ver13/OVXActionOutputVer13.java | 426 |
final LinkedList<OVXPort> outPortList = new LinkedList<OVXPort>();
if (U16.f(outPort) < U16.f(OFPP_MAX_SHORT)) {
if (sw.getPort(outPort) != null && sw.getPort(outPort).isActive()) {
outPortList.add(sw.getPort(outPort));
}
} else if (U16.f(outPort) == U16.f(OFPP_FLOOD_SHORT)) {
final Map<Short, OVXPort> ports = sw.getPorts();
for (final OVXPort port : ports.values()) {
if (port.getPortNo().getShortPortNumber() != inPort && port.isActive()) {
outPortList.add(port);
}
}
} else if (U16.f(outPort) == U16.f(OFPP_ALL_SHORT)) {
final Map<Short, OVXPort> ports = sw.getPorts();
for (final OVXPort port : ports.values()) {
if (port.isActive()) {
outPortList.add(port);
}
}
} else {
log.warn(
"Output port from controller currently not supported. Short = {}, Exadecimal = 0x{}",
U16.f(outPort),
Integer.toHexString(U16.f(outPort) & 0xffff));
}
if (outPortList.size() < 1) {
throw new DroppedMessageException(
"No output ports defined; dropping");
}
return outPortList;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInReasonSerializerVer13.java | 35 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInReasonSerializerVer14.java | 38 |
public final static byte BSN_NEW_HOST_VAL = (byte) 0x80;
public final static byte BSN_STATION_MOVE_VAL = (byte) 0x81;
public final static byte BSN_BAD_VLAN_VAL = (byte) 0x82;
public final static byte BSN_DESTINATION_LOOKUP_FAILURE_VAL = (byte) 0x83;
public final static byte BSN_NO_ROUTE_VAL = (byte) 0x84;
public final static byte BSN_ICMP_ECHO_REQUEST_VAL = (byte) 0x85;
public final static byte BSN_DEST_NETWORK_UNREACHABLE_VAL = (byte) 0x86;
public final static byte BSN_DEST_HOST_UNREACHABLE_VAL = (byte) 0x87;
public final static byte BSN_DEST_PORT_UNREACHABLE_VAL = (byte) 0x88;
public final static byte BSN_FRAGMENTATION_REQUIRED_VAL = (byte) 0x89;
public final static byte BSN_ARP_VAL = (byte) 0x8b;
public final static byte BSN_DHCP_VAL = (byte) 0x8c;
public final static byte BSN_DEBUG_VAL = (byte) 0x8d;
public final static byte BSN_PACKET_OF_DEATH_VAL = (byte) 0x8e;
public static OFPacketInReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPacketInReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFPacketInReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFPacketInReason ofWireValue(byte val) {
switch(val) {
case NO_MATCH_VAL:
return OFPacketInReason.NO_MATCH;
case ACTION_VAL:
return OFPacketInReason.ACTION;
case INVALID_TTL_VAL:
return OFPacketInReason.INVALID_TTL;
case BSN_NEW_HOST_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStateSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStateSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStateSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStateSerializerVer14.java | 34 |
public class OFPortStateSerializerVer11 {
public final static int LINK_DOWN_VAL = 0x1;
public final static int BLOCKED_VAL = 0x2;
public final static int LIVE_VAL = 0x4;
public static Set<OFPortState> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortState> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortState> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortState> ofWireValue(int val) {
EnumSet<OFPortState> set = EnumSet.noneOf(OFPortState.class);
if((val & LINK_DOWN_VAL) != 0)
set.add(OFPortState.LINK_DOWN);
if((val & BLOCKED_VAL) != 0)
set.add(OFPortState.BLOCKED);
if((val & LIVE_VAL) != 0)
set.add(OFPortState.LIVE);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortState> set) {
int wireValue = 0;
for(OFPortState e: set) {
switch(e) {
case LINK_DOWN:
wireValue |= LINK_DOWN_VAL;
break;
case BLOCKED:
wireValue |= BLOCKED_VAL;
break;
case LIVE:
wireValue |= LIVE_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFPortState in version 1.1: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionCodeSerializerVer13.java | 30 |
public class OFBadInstructionCodeSerializerVer12 {
public final static short UNKNOWN_INST_VAL = (short) 0x0;
public final static short UNSUP_INST_VAL = (short) 0x1;
public final static short BAD_TABLE_ID_VAL = (short) 0x2;
public final static short UNSUP_METADATA_VAL = (short) 0x3;
public final static short UNSUP_METADATA_MASK_VAL = (short) 0x4;
public final static short BAD_EXPERIMENTER_VAL = (short) 0x5;
public final static short BAD_EXPERIMENTER_TYPE_VAL = (short) 0x6;
public final static short BAD_LEN_VAL = (short) 0x7;
public final static short EPERM_VAL = (short) 0x8;
public static OFBadInstructionCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadInstructionCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadInstructionCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadInstructionCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_INST_VAL:
return OFBadInstructionCode.UNKNOWN_INST;
case UNSUP_INST_VAL:
return OFBadInstructionCode.UNSUP_INST;
case BAD_TABLE_ID_VAL:
return OFBadInstructionCode.BAD_TABLE_ID;
case UNSUP_METADATA_VAL:
return OFBadInstructionCode.UNSUP_METADATA;
case UNSUP_METADATA_MASK_VAL:
return OFBadInstructionCode.UNSUP_METADATA_MASK;
case BAD_EXPERIMENTER_VAL:
return OFBadInstructionCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadInstructionCode.BAD_EXPERIMENTER_TYPE;
case BAD_LEN_VAL:
return OFBadInstructionCode.BAD_LEN;
case EPERM_VAL:
return OFBadInstructionCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBadInstructionCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 583 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 583 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 583 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 583 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 583 |
}
//
@Override
public OFBsnVportL2Gre build() {
Set<OFBsnVportL2GreFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
OFPort loopbackPortNo = this.loopbackPortNoSet ? this.loopbackPortNo : DEFAULT_LOOPBACK_PORT_NO;
if(loopbackPortNo == null)
throw new NullPointerException("Property loopbackPortNo must not be null");
MacAddress localMac = this.localMacSet ? this.localMac : DEFAULT_LOCAL_MAC;
if(localMac == null)
throw new NullPointerException("Property localMac must not be null");
MacAddress nhMac = this.nhMacSet ? this.nhMac : DEFAULT_NH_MAC;
if(nhMac == null)
throw new NullPointerException("Property nhMac must not be null");
IPv4Address srcIp = this.srcIpSet ? this.srcIp : DEFAULT_SRC_IP;
if(srcIp == null)
throw new NullPointerException("Property srcIp must not be null");
IPv4Address dstIp = this.dstIpSet ? this.dstIp : DEFAULT_DST_IP;
if(dstIp == null)
throw new NullPointerException("Property dstIp must not be null");
short dscp = this.dscpSet ? this.dscp : DEFAULT_DSCP;
short ttl = this.ttlSet ? this.ttl : DEFAULT_TTL;
long vpn = this.vpnSet ? this.vpn : DEFAULT_VPN;
long rateLimit = this.rateLimitSet ? this.rateLimit : DEFAULT_RATE_LIMIT;
String ifName = this.ifNameSet ? this.ifName : DEFAULT_IF_NAME;
if(ifName == null)
throw new NullPointerException("Property ifName must not be null");
return new OFBsnVportL2GreVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 797 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 0
short command = bb.readByte();
if(command != (short) 0x0)
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.ADD(0), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 793 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 4
short command = bb.readByte();
if(command != (short) 0x4)
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.DELETE_STRICT(4), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 792 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 3
short command = bb.readByte();
if(command != (short) 0x3)
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.DELETE(3), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 793 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 2
short command = bb.readByte();
if(command != (short) 0x2)
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.MODIFY_STRICT(2), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 791 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 1
short command = bb.readByte();
if(command != (short) 0x1)
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.MODIFY(1), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 243 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 243 |
return new OFGroupStatsEntryVer11(
group,
refCount,
packetCount,
byteCount,
bucketStats
);
}
}
static class Builder implements OFGroupStatsEntry.Builder {
// OF message fields
private boolean groupSet;
private OFGroup group;
private boolean refCountSet;
private long refCount;
private boolean packetCountSet;
private U64 packetCount;
private boolean byteCountSet;
private U64 byteCount;
private boolean bucketStatsSet;
private List<OFBucketCounter> bucketStats;
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 276 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 153 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryDescStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 153 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 276 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 153 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableEntryStatsRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsEntryVer13.java | 146 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsEntryVer13.java | 264 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFCalientPortDescStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFCalientPortDescStatsEntry.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFCalientPortDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFCalientPortDescStatsEntry.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getState() {
return state;
}
@Override
public OFCalientPortDescStatsEntry.Builder setState(long state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public List<OFCalientPortDescProp> getProperties() {
return properties;
}
@Override
public OFCalientPortDescStatsEntry.Builder setProperties(List<OFCalientPortDescProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFCalientPortDescStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 313 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 320 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 320 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 320 |
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int priority = this.prioritySet ? this.priority : parentMessage.priority;
short reason = this.reasonSet ? this.reason : parentMessage.reason;
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 457 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 521 |
private boolean configSet;
private long config;
private boolean maxEntriesSet;
private long maxEntries;
private boolean activeCountSet;
private long activeCount;
private boolean lookupCountSet;
private U64 lookupCount;
private boolean matchedCountSet;
private U64 matchedCount;
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch() {
return match;
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions() {
return writeActions;
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) {
this.writeActions = writeActions;
this.writeActionsSet = true;
return this;
}
@Override
public long getApplyActions() {
return applyActions;
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) {
this.applyActions = applyActions;
this.applyActionsSet = true;
return this;
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 325 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 325 |
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property ports not supported in version 1.3"); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 391 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 294 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 294 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 294 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 294 |
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(this.getXid(),this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(),this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions());
return flowMod;
}
public Map<String, Object> toMap() {
final Map<String, Object> map = new LinkedHashMap<String, Object>();
if (this.match != null) {
map.put("match", OVXFactoryInst.myOVXFactory.buildOVXMatchV1(match).toMap());
}
LinkedList<Map<String, Object>> actions = new LinkedList<Map<String, Object>>();
for (OFAction act : this.actions) {
try {
actions.add(OVXUtil.actionToMap(act));
} catch (UnknownActionException e) {
log.warn("Ignoring action {} because {}", act, e.getMessage());
}
}
map.put("actionsList", actions);
map.put("priority", String.valueOf(this.priority));
return map;
}
public void setVirtualCookie() {
long tmp = this.ovxCookie;
this.ovxCookie = this.cookie.getValue();
this.cookie = U64.of(tmp);
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 754 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 754 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 754 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 754 |
StringBuilder b = new StringBuilder("OFBsnVportL2GreVer10(");
b.append("flags=").append(flags);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("loopbackPortNo=").append(loopbackPortNo);
b.append(", ");
b.append("localMac=").append(localMac);
b.append(", ");
b.append("nhMac=").append(nhMac);
b.append(", ");
b.append("srcIp=").append(srcIp);
b.append(", ");
b.append("dstIp=").append(dstIp);
b.append(", ");
b.append("dscp=").append(dscp);
b.append(", ");
b.append("ttl=").append(ttl);
b.append(", ");
b.append("vpn=").append(vpn);
b.append(", ");
b.append("rateLimit=").append(rateLimit);
b.append(", ");
b.append("ifName=").append(ifName);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 740 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 740 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 740 |
StringBuilder b = new StringBuilder("OFFlowRemovedVer12(");
b.append("xid=").append(xid);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("reason=").append(reason);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("match=").append(match);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 736 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 736 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 736 |
StringBuilder b = new StringBuilder("OFGroupFeaturesStatsReplyVer12(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("types=").append(types);
b.append(", ");
b.append("capabilities=").append(capabilities);
b.append(", ");
b.append("maxGroupsAll=").append(maxGroupsAll);
b.append(", ");
b.append("maxGroupsSelect=").append(maxGroupsSelect);
b.append(", ");
b.append("maxGroupsIndirect=").append(maxGroupsIndirect);
b.append(", ");
b.append("maxGroupsFf=").append(maxGroupsFf);
b.append(", ");
b.append("actionsAll=").append(actionsAll);
b.append(", ");
b.append("actionsSelect=").append(actionsSelect);
b.append(", ");
b.append("actionsIndirect=").append(actionsIndirect);
b.append(", ");
b.append("actionsFf=").append(actionsFf);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 685 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 685 |
StringBuilder b = new StringBuilder("OFBsnLacpStatsEntryVer13(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("actorSysPriority=").append(actorSysPriority);
b.append(", ");
b.append("actorSysMac=").append(actorSysMac);
b.append(", ");
b.append("actorPortPriority=").append(actorPortPriority);
b.append(", ");
b.append("actorPortNum=").append(actorPortNum);
b.append(", ");
b.append("actorKey=").append(actorKey);
b.append(", ");
b.append("convergenceStatus=").append(convergenceStatus);
b.append(", ");
b.append("partnerSysPriority=").append(partnerSysPriority);
b.append(", ");
b.append("partnerSysMac=").append(partnerSysMac);
b.append(", ");
b.append("partnerPortPriority=").append(partnerPortPriority);
b.append(", ");
b.append("partnerPortNum=").append(partnerPortNum);
b.append(", ");
b.append("partnerKey=").append(partnerKey);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketInVer10.java | 470 |
| net/onrc/openvirtex/messages/ver10/OVXPacketOutVer10.java | 337 |
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 534 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 319 |
final int arpPos = packetDataBB.position();
// opcode
scratch = packetDataBB.getShort(arpPos + 6);
ipDscp=(byte) (0xff & scratch);
scratch = packetDataBB.getShort(arpPos + 2);
// if ipv4 and addr len is 4
if (scratch == 0x800 && packetDataBB.get(arpPos + 5) == 4) {
// nw src
ipv4Src = packetDataBB.getInt(arpPos + 14);
// nw dst
ipv4Dst = packetDataBB.getInt(arpPos + 24);
} else {
ipv4Src=0;
ipv4Dst=0;
}
break;
default:
// Not ARP or IP. Wildcard NW_DST and NW_SRC
wildcards.add(OFFlowWildcards.NW_DST_ALL);
wildcards.add(OFFlowWildcards.NW_SRC_ALL);
wildcards.add(OFFlowWildcards.NW_PROTO);
wildcards.add(OFFlowWildcards.NW_TOS);
ipDscp=(byte)0;
ipProtocol=(byte)0;
ipv4Src=0;
ipv4Dst=0;
break;
}
short tcpSrc=0;
short tcpDst=0;
switch (ipProtocol) {
case 0x01:
// icmp
// type
tcpSrc = U8.f(packetDataBB.get());
// code
tcpDst = U8.f(packetDataBB.get());
break;
case 0x06:
// tcp
// tcp src
tcpSrc = packetDataBB.getShort();
// tcp dest
tcpDst = packetDataBB.getShort();
break;
case 0x11:
// udp
// udp src
tcpSrc = packetDataBB.getShort();
// udp dest
tcpDst = packetDataBB.getShort();
break;
default:
// Unknown network proto.
wildcards.add(OFFlowWildcards.TP_DST);
wildcards.add(OFFlowWildcards.TP_SRC);
tcpDst = (short)0;
tcpSrc = (short)0;
break;
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 144 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 144 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 144 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 144 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 144 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 144 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setEntries(List<OFBsnDebugCounterDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnDebugCounterDescStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnDebugCounterDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setEntries(List<OFBsnDebugCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnDebugCounterStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnDebugCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setEntries(List<OFBsnFlowChecksumBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnFlowChecksumBucketStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnFlowChecksumBucketStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGenericStatsReply.Builder setEntries(List<OFBsnGenericStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGenericStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGenericStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnGenericStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setEntries(List<OFBsnGentableBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableBucketStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnGentableBucketStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 225 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 225 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearReply.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public OFBsnGentableClearReply.Builder setDeletedCount(long deletedCount) {
this.deletedCount = deletedCount;
this.deletedCountSet = true;
return this;
}
@Override
public long getErrorCount() {
return errorCount;
}
@Override
public OFBsnGentableClearReply.Builder setErrorCount(long errorCount) {
this.errorCount = errorCount;
this.errorCountSet = true;
return this;
}
//
@Override
public OFBsnGentableClearReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long deletedCount = this.deletedCountSet ? this.deletedCount : DEFAULT_DELETED_COUNT;
long errorCount = this.errorCountSet ? this.errorCount : DEFAULT_ERROR_COUNT;
return new OFBsnGentableClearReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableDescStatsReply.Builder setEntries(List<OFBsnGentableDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableDescStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnGentableDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setEntries(List<OFBsnGentableEntryDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableEntryDescStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnGentableEntryDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setEntries(List<OFBsnGentableEntryStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableEntryStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnGentableEntryStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableStatsReply.Builder setEntries(List<OFBsnGentableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnGentableStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnLacpStatsReply.Builder setEntries(List<OFBsnLacpStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnLacpStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnLacpStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnLacpStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 144 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 144 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnPortCounterStatsReply.Builder setEntries(List<OFBsnPortCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnPortCounterStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnPortCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setEntries(List<OFBsnSwitchPipelineStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnSwitchPipelineStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnSwitchPipelineStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnSwitchPipelineStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setEntries(List<OFBsnTableChecksumStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnTableChecksumStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnTableChecksumStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnTableChecksumStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setEntries(List<OFBsnVlanCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnVlanCounterStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnVlanCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setEntries(List<OFBsnVrfCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnVrfCounterStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFBsnVrfCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 144 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 144 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 258 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 230 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 230 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 230 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 230 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 230 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
//
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : DEFAULT_SLOT_NUM;
return new OFBsnPduRxReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 230 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 230 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 230 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 230 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 230 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
//
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : DEFAULT_SLOT_NUM;
return new OFBsnPduTxReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 427 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 434 |
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 427 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 454 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 434 |
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 427 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 453 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 434 |
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 427 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 454 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 434 |
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 427 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 452 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 434 |
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 57 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 59 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 63 |
| org/projectfloodlight/openflow/protocol/ver14/OFTypeSerializerVer14.java | 66 |
public static OFType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFType e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFType e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFType ofWireValue(byte val) {
switch(val) {
case HELLO_VAL:
return OFType.HELLO;
case ERROR_VAL:
return OFType.ERROR;
case ECHO_REQUEST_VAL:
return OFType.ECHO_REQUEST;
case ECHO_REPLY_VAL:
return OFType.ECHO_REPLY;
case EXPERIMENTER_VAL:
return OFType.EXPERIMENTER;
case FEATURES_REQUEST_VAL:
return OFType.FEATURES_REQUEST;
case FEATURES_REPLY_VAL:
return OFType.FEATURES_REPLY;
case GET_CONFIG_REQUEST_VAL:
return OFType.GET_CONFIG_REQUEST;
case GET_CONFIG_REPLY_VAL:
return OFType.GET_CONFIG_REPLY;
case SET_CONFIG_VAL:
return OFType.SET_CONFIG;
case PACKET_IN_VAL:
return OFType.PACKET_IN;
case FLOW_REMOVED_VAL:
return OFType.FLOW_REMOVED;
case PORT_STATUS_VAL:
return OFType.PORT_STATUS;
case PACKET_OUT_VAL:
return OFType.PACKET_OUT;
case FLOW_MOD_VAL:
return OFType.FLOW_MOD;
case GROUP_MOD_VAL:
return OFType.GROUP_MOD;
case PORT_MOD_VAL:
return OFType.PORT_MOD;
case TABLE_MOD_VAL:
return OFType.TABLE_MOD;
case STATS_REQUEST_VAL:
return OFType.STATS_REQUEST;
case STATS_REPLY_VAL:
return OFType.STATS_REPLY;
case BARRIER_REQUEST_VAL:
return OFType.BARRIER_REQUEST;
case BARRIER_REPLY_VAL:
return OFType.BARRIER_REPLY;
case QUEUE_GET_CONFIG_REQUEST_VAL: | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXSwitch.java | 62 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXSwitch.java | 61 |
this.log.info("Start virtual switch {} in virtual network {}",
dpid, virtualNetwork.getTenantId());
OVXSwitch ovxSwitch = virtualNetwork.getSwitch(dpid.longValue());
Map<String, Object> reply = new HashMap<String, Object>(
ovxSwitch.getDBObject());
reply.put(TenantHandler.TENANT, ovxSwitch.getTenantId());
resp = new JSONRPC2Response(reply, 0);
} catch (final MissingRequiredField e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Unable to create virtual network : "
+ e.getMessage()), 0);
} catch (final InvalidDPIDException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid DPID : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
}
return resp;
}
@Override
public JSONRPC2ParamsType getType() {
return JSONRPC2ParamsType.OBJECT;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 128 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
int subtype = this.subtypeSet ? this.subtype : parentMessage.subtype;
long experimenter = this.experimenterSet ? this.experimenter : parentMessage.experimenter;
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFExperimenterErrorMsgVer12( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 167 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 108 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 110 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 109 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 113 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 147 |
for (OFAction act: this.getActions()) {
try {
if (act.getType().equals(OFActionType.SET_FIELD)) {
OFOxm<?> oxmField = ((OFActionSetField)act).getField();
act = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmField);
} else if (act.getType().equals(OFActionType.OUTPUT)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionOutputV3(((OFActionOutput)act).getPort(),((OFActionOutput)act).getMaxLen());
} else if (act.getType().equals(OFActionType.SET_QUEUE)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionSetQueue(((OFActionSetQueue)act).getQueueId());
} else if (act.getType().equals(OFActionType.PUSH_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPushVlan(((OFActionPushVlan)act).getEthertype());
} else if (act.getType().equals(OFActionType.POP_VLAN)) {
act=OVXFactoryInst.myOVXFactory.buildOVXActionPopVlan();
}
((VirtualizableActionV3) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 136 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 136 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 136 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 136 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 136 |
BuilderWithParent(OFBsnVportQInQVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 152 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 280 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 152 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 280 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 152 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 280 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 152 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 280 |
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise() {
return advertise;
}
@Override
public OFPortMod.Builder setAdvertise(long advertise) {
this.advertise = advertise;
this.advertiseSet = true;
return this;
}
@Override
public List<OFPortModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 623 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 623 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 623 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 11
byte type = bb.readByte();
if(type != (byte) 0xb)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_REMOVED(11), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
int priority = U16.f(bb.readShort());
short reason = U8.f(bb.readByte());
TableId tableId = TableId.readByte(bb);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
U64 packetCount = U64.ofRaw(bb.readLong());
U64 byteCount = U64.ofRaw(bb.readLong());
Match match = ChannelUtilsVer12.readOFMatch(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 146 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 262 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnFlowIdle.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnFlowIdle.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowIdle.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFBsnFlowIdle.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFBsnFlowIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 149 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 267 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryAdd.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryAdd.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryAdd.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryAdd.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBsnGentableEntryAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 267 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 149 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryAdd.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryAdd.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryAdd.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryAdd.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 480 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 480 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 38)
throw new OFParseError("Wrong length: Expected=38(38), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x29L
int subtype = bb.readInt();
if(subtype != 0x29)
throw new OFParseError("Wrong subtype: Expected=0x29L(0x29L), got="+subtype);
short enabled = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3);
OFPort portNo = OFPort.read4Bytes(bb);
int actorSysPriority = U16.f(bb.readShort());
MacAddress actorSysMac = MacAddress.read6Bytes(bb);
int actorPortPriority = U16.f(bb.readShort());
int actorPortNum = U16.f(bb.readShort());
int actorKey = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 625 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 625 |
OFBsnSetLacpRequestVer13 other = (OFBsnSetLacpRequestVer13) obj;
if( xid != other.xid)
return false;
if( enabled != other.enabled)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( actorSysPriority != other.actorSysPriority)
return false;
if (actorSysMac == null) {
if (other.actorSysMac != null)
return false;
} else if (!actorSysMac.equals(other.actorSysMac))
return false;
if( actorPortPriority != other.actorPortPriority)
return false;
if( actorPortNum != other.actorPortNum)
return false;
if( actorKey != other.actorKey)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + enabled;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + actorSysPriority;
result = prime * result + ((actorSysMac == null) ? 0 : actorSysMac.hashCode());
result = prime * result + actorPortPriority;
result = prime * result + actorPortNum;
result = prime * result + actorKey;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 146 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 262 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnFlowIdle.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnFlowIdle.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowIdle.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFBsnFlowIdle.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFBsnFlowIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPortStatusVer10.java | 160 |
| net/onrc/openvirtex/messages/ver13/OVXPortStatusVer13.java | 152 |
&& ((OFPortStateSerializerVer10.toWireValue(plink.getSrcPort().getState()) & OFPortStateSerializerVer10.LINK_DOWN_VAL) == 0)) {
OVXNetwork net = map.getVirtualNetwork(tid);
for (OVXLink link : net.getLinks()) {
link.tryRevert(plink);
}
for (OVXSwitch ovxSw : net.getSwitches()) {
if (ovxSw instanceof OVXBigSwitch) {
for (Map<OVXPort, SwitchRoute> routeMap : ((OVXBigSwitch) ovxSw)
.getRouteMap().values()) {
for (SwitchRoute route : routeMap.values()) {
route.tryRevert(plink);
}
}
}
}
}
if (map.hasOVXLinks(plink, tid)) {
List<OVXLink> vlinks = map.getVirtualLinks(plink, tid);
for (OVXLink vlink : vlinks) {
if (isReason(OFPortReason.DELETE)) {
/* couldn't recover, remove link */
if (!vlink.tryRecovery(plink)) {
OVXPort vport = vlink.getSrcPort();
vport.unMapHost();
vport.handlePortDelete(this);
sw.removePort(plink.getSrcPort());
}
}
if (isReason(OFPortReason.MODIFY)) {
if (isState(OFPortState.LINK_DOWN)) {
/* couldn't recover, remove link */
if (!vlink.tryRecovery(plink)) {
vlink.getSrcPort().handlePortDisable(this);
}
} else if (!isState(OFPortState.LINK_DOWN)
&& ((OFPortStateSerializerVer10.toWireValue(plink.getSrcPort().getState()) & OFPortStateSerializerVer10.LINK_DOWN_VAL) == 0)) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 515 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 525 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 525 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 525 |
OFPortModVer10 other = (OFPortModVer10) obj;
if( xid != other.xid)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if( config != other.config)
return false;
if( mask != other.mask)
return false;
if( advertise != other.advertise)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * (int) (config ^ (config >>> 32));
result = prime * (int) (mask ^ (mask >>> 32));
result = prime * (int) (advertise ^ (advertise >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 172 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 326 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 172 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 326 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 325 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 325 |
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public OFFeaturesReply.Builder setReserved(long reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public List<OFPortDesc> getPorts() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 256 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 256 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 256 |
return new OFQueueStatsEntryVer10(
portNo,
queueId,
txBytes,
txPackets,
txErrors
);
}
}
static class Builder implements OFQueueStatsEntry.Builder {
// OF message fields
private boolean portNoSet;
private OFPort portNo;
private boolean queueIdSet;
private long queueId;
private boolean txBytesSet;
private U64 txBytes;
private boolean txPacketsSet;
private U64 txPackets;
private boolean txErrorsSet;
private U64 txErrors;
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 462 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 438 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 431 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 457 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 456 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 438 |
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 777 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 800 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 800 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 800 |
if( idleTimeout != other.idleTimeout)
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + priority;
result = prime * result + reason;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + idleTimeout;
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setEntries(List<OFBsnDebugCounterDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnDebugCounterDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnDebugCounterDescStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnDebugCounterDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setEntries(List<OFBsnDebugCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnDebugCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnDebugCounterStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnDebugCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setEntries(List<OFBsnFlowChecksumBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnFlowChecksumBucketStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnFlowChecksumBucketStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnFlowChecksumBucketStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGenericStatsReply.Builder setEntries(List<OFBsnGenericStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGenericStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGenericStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnGenericStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setEntries(List<OFBsnGentableBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableBucketStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableBucketStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnGentableBucketStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableDescStatsReply.Builder setEntries(List<OFBsnGentableDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableDescStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnGentableDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setEntries(List<OFBsnGentableEntryDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableEntryDescStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnGentableEntryDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setEntries(List<OFBsnGentableEntryStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableEntryStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnGentableEntryStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableStatsReply.Builder setEntries(List<OFBsnGentableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnGentableStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnGentableStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnLacpStatsReply.Builder setEntries(List<OFBsnLacpStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnLacpStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnLacpStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnLacpStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnPortCounterStatsReply.Builder setEntries(List<OFBsnPortCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnPortCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnPortCounterStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnPortCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setEntries(List<OFBsnSwitchPipelineStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnSwitchPipelineStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnSwitchPipelineStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnSwitchPipelineStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setEntries(List<OFBsnTableChecksumStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnTableChecksumStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnTableChecksumStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnTableChecksumStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setEntries(List<OFBsnVlanCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnVlanCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnVlanCounterStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnVlanCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setEntries(List<OFBsnVrfCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnVrfCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFBsnVrfCounterStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFBsnVrfCounterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 142 |
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 253 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 478 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 483 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 483 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 483 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 483 |
OFAggregateStatsReplyVer10 other = (OFAggregateStatsReplyVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if( flowCount != other.flowCount)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * (int) (flowCount ^ (flowCount >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 474 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 479 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 479 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 479 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 479 |
OFPacketOutVer10 other = (OFPacketOutVer10) obj;
if( xid != other.xid)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if (inPort == null) {
if (other.inPort != null)
return false;
} else if (!inPort.equals(other.inPort))
return false;
if (actions == null) {
if (other.actions != null)
return false;
} else if (!actions.equals(other.actions))
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + ((inPort == null) ? 0 : inPort.hashCode());
result = prime * result + ((actions == null) ? 0 : actions.hashCode());
result = prime * result + Arrays.hashCode(data);
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 142 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 253 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 142 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 253 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 142 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 253 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 142 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 253 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 545 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 571 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 571 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 571 |
}
//
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : DEFAULT_CONFIG;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : DEFAULT_STATE;
if(state == null)
throw new NullPointerException("Property state must not be null");
Set<OFPortFeatures> curr = this.currSet ? this.curr : DEFAULT_CURR;
if(curr == null)
throw new NullPointerException("Property curr must not be null");
Set<OFPortFeatures> advertised = this.advertisedSet ? this.advertised : DEFAULT_ADVERTISED;
if(advertised == null)
throw new NullPointerException("Property advertised must not be null");
Set<OFPortFeatures> supported = this.supportedSet ? this.supported : DEFAULT_SUPPORTED;
if(supported == null)
throw new NullPointerException("Property supported must not be null");
Set<OFPortFeatures> peer = this.peerSet ? this.peer : DEFAULT_PEER;
if(peer == null)
throw new NullPointerException("Property peer must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 371 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 371 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 371 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 371 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 371 |
OFBsnInterfaceVer10 other = (OFBsnInterfaceVer10) obj;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (ipv4Addr == null) {
if (other.ipv4Addr != null)
return false;
} else if (!ipv4Addr.equals(other.ipv4Addr))
return false;
if (ipv4Netmask == null) {
if (other.ipv4Netmask != null)
return false;
} else if (!ipv4Netmask.equals(other.ipv4Netmask))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((ipv4Addr == null) ? 0 : ipv4Addr.hashCode());
result = prime * result + ((ipv4Netmask == null) ? 0 : ipv4Netmask.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 30 |
public class OFTypeSerializerVer11 {
public final static byte HELLO_VAL = (byte) 0x0;
public final static byte ERROR_VAL = (byte) 0x1;
public final static byte ECHO_REQUEST_VAL = (byte) 0x2;
public final static byte ECHO_REPLY_VAL = (byte) 0x3;
public final static byte EXPERIMENTER_VAL = (byte) 0x4;
public final static byte FEATURES_REQUEST_VAL = (byte) 0x5;
public final static byte FEATURES_REPLY_VAL = (byte) 0x6;
public final static byte GET_CONFIG_REQUEST_VAL = (byte) 0x7;
public final static byte GET_CONFIG_REPLY_VAL = (byte) 0x8;
public final static byte SET_CONFIG_VAL = (byte) 0x9;
public final static byte PACKET_IN_VAL = (byte) 0xa;
public final static byte FLOW_REMOVED_VAL = (byte) 0xb;
public final static byte PORT_STATUS_VAL = (byte) 0xc;
public final static byte PACKET_OUT_VAL = (byte) 0xd;
public final static byte FLOW_MOD_VAL = (byte) 0xe;
public final static byte GROUP_MOD_VAL = (byte) 0xf;
public final static byte PORT_MOD_VAL = (byte) 0x10;
public final static byte TABLE_MOD_VAL = (byte) 0x11;
public final static byte STATS_REQUEST_VAL = (byte) 0x12;
public final static byte STATS_REPLY_VAL = (byte) 0x13;
public final static byte BARRIER_REQUEST_VAL = (byte) 0x14;
public final static byte BARRIER_REPLY_VAL = (byte) 0x15;
public final static byte QUEUE_GET_CONFIG_REQUEST_VAL = (byte) 0x16;
public final static byte QUEUE_GET_CONFIG_REPLY_VAL = (byte) 0x17;
public static OFType readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 367 |
OFBsnControllerConnectionVer13 other = (OFBsnControllerConnectionVer13) obj;
if (state == null) {
if (other.state != null)
return false;
} else if (!state.equals(other.state))
return false;
if (auxiliaryId == null) {
if (other.auxiliaryId != null)
return false;
} else if (!auxiliaryId.equals(other.auxiliaryId))
return false;
if (role == null) {
if (other.role != null)
return false;
} else if (!role.equals(other.role))
return false;
if (uri == null) {
if (other.uri != null)
return false;
} else if (!uri.equals(other.uri))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result + ((auxiliaryId == null) ? 0 : auxiliaryId.hashCode());
result = prime * result + ((role == null) ? 0 : role.hashCode());
result = prime * result + ((uri == null) ? 0 : uri.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 132 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
//
return new OFBsnFlowChecksumBucketStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 127 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
//
return new OFBsnGentableBucketStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 132 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
//
return new OFBsnPortCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 391 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 391 |
return new OFGroupStatsEntryVer13(
group,
refCount,
packetCount,
byteCount,
durationSec,
durationNsec,
bucketStats
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFGroupStatsEntry> {
@Override
public OFGroupStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
OFGroup group = OFGroup.read4Bytes(bb);
long refCount = U32.f(bb.readInt());
// pad: 4 bytes
bb.skipBytes(4);
U64 packetCount = U64.ofRaw(bb.readLong());
U64 byteCount = U64.ofRaw(bb.readLong());
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
List<OFBucketCounter> bucketStats = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBucketCounterVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 193 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 193 |
return new OFMeterFeaturesVer13(
maxMeter,
bandTypes,
capabilities,
maxBands,
maxColor
);
}
}
static class Builder implements OFMeterFeatures.Builder {
// OF message fields
private boolean maxMeterSet;
private long maxMeter;
private boolean bandTypesSet;
private long bandTypes;
private boolean capabilitiesSet;
private long capabilities;
private boolean maxBandsSet;
private short maxBands;
private boolean maxColorSet;
private short maxColor;
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public OFMeterFeatures.Builder setMaxMeter(long maxMeter) {
this.maxMeter = maxMeter;
this.maxMeterSet = true;
return this;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public OFMeterFeatures.Builder setBandTypes(long bandTypes) {
this.bandTypes = bandTypes;
this.bandTypesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFMeterFeatures.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public OFMeterFeatures.Builder setMaxBands(short maxBands) {
this.maxBands = maxBands;
this.maxBandsSet = true;
return this;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFMeterFeatures.Builder setMaxColor(short maxColor) {
this.maxColor = maxColor;
this.maxColorSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 220 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 220 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 220 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
int subtype = this.subtypeSet ? this.subtype : DEFAULT_SUBTYPE;
long experimenter = this.experimenterSet ? this.experimenter : DEFAULT_EXPERIMENTER;
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFExperimenterErrorMsgVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 368 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 368 |
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowStatsEntryVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 384 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 384 |
return new OFMeterStatsVer13(
meterId,
flowCount,
packetInCount,
byteInCount,
durationSec,
durationNsec,
bandStats
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMeterStats> {
@Override
public OFMeterStats readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
long meterId = U32.f(bb.readInt());
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 6 bytes
bb.skipBytes(6);
long flowCount = U32.f(bb.readInt());
U64 packetInCount = U64.ofRaw(bb.readLong());
U64 byteInCount = U64.ofRaw(bb.readLong());
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
List<OFMeterBandStats> bandStats = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFMeterBandStatsVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 147 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 261 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 261 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 261 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 147 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 147 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 147 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFBsnPduRxRequest.Builder setTimeoutMs(long timeoutMs) {
this.timeoutMs = timeoutMs;
this.timeoutMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduRxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnPduRxRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 147 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 261 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 261 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 261 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 147 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 147 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 147 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFBsnPduTxRequest.Builder setTxIntervalMs(long txIntervalMs) {
this.txIntervalMs = txIntervalMs;
this.txIntervalMsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxRequest.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnPduTxRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnPduTxRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 140 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 257 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 257 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 257 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 257 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 257 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 140 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 140 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 140 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 140 |
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFBsnVportQInQ.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public OFBsnVportQInQ.Builder setIngressTpid(int ingressTpid) {
this.ingressTpid = ingressTpid;
this.ingressTpidSet = true;
return this;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setIngressVlanId(int ingressVlanId) {
this.ingressVlanId = ingressVlanId;
this.ingressVlanIdSet = true;
return this;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public OFBsnVportQInQ.Builder setEgressTpid(int egressTpid) {
this.egressTpid = egressTpid;
this.egressTpidSet = true;
return this;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public OFBsnVportQInQ.Builder setEgressVlanId(int egressVlanId) {
this.egressVlanId = egressVlanId;
this.egressVlanIdSet = true;
return this;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFBsnVportQInQ.Builder setIfName(String ifName) {
this.ifName = ifName;
this.ifNameSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedCodeSerializerVer13.java | 30 |
public class OFFlowModFailedCodeSerializerVer12 {
public final static short UNKNOWN_VAL = (short) 0x0;
public final static short TABLE_FULL_VAL = (short) 0x1;
public final static short BAD_TABLE_ID_VAL = (short) 0x2;
public final static short OVERLAP_VAL = (short) 0x3;
public final static short EPERM_VAL = (short) 0x4;
public final static short BAD_TIMEOUT_VAL = (short) 0x5;
public final static short BAD_COMMAND_VAL = (short) 0x6;
public final static short BAD_FLAGS_VAL = (short) 0x7;
public static OFFlowModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFFlowModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFFlowModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFFlowModFailedCode.UNKNOWN;
case TABLE_FULL_VAL:
return OFFlowModFailedCode.TABLE_FULL;
case BAD_TABLE_ID_VAL:
return OFFlowModFailedCode.BAD_TABLE_ID;
case OVERLAP_VAL:
return OFFlowModFailedCode.OVERLAP;
case EPERM_VAL:
return OFFlowModFailedCode.EPERM;
case BAD_TIMEOUT_VAL:
return OFFlowModFailedCode.BAD_TIMEOUT;
case BAD_COMMAND_VAL:
return OFFlowModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFFlowModFailedCode.BAD_FLAGS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFFlowModFailedCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 522 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 535 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 535 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 535 |
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
short reason = this.reasonSet ? this.reason : DEFAULT_REASON;
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 216 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
//
@Override
public OFBsnGentableBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
return new OFBsnGentableBucketStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBundleCtrlMsgVer14.java | 136 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleCtrlMsgVer14.java | 244 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.BUNDLE_CONTROL;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBundleCtrlMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public BundleId getBundleId() {
return bundleId;
}
@Override
public OFBundleCtrlMsg.Builder setBundleId(BundleId bundleId) {
this.bundleId = bundleId;
this.bundleIdSet = true;
return this;
}
@Override
public OFBundleCtrlType getBundleCtrlType() {
return bundleCtrlType;
}
@Override
public OFBundleCtrlMsg.Builder setBundleCtrlType(OFBundleCtrlType bundleCtrlType) {
this.bundleCtrlType = bundleCtrlType;
this.bundleCtrlTypeSet = true;
return this;
}
@Override
public Set<OFBundleFlags> getFlags() {
return flags;
}
@Override
public OFBundleCtrlMsg.Builder setFlags(Set<OFBundleFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFBundleProp> getProperties() {
return properties;
}
@Override
public OFBundleCtrlMsg.Builder setProperties(List<OFBundleProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFBundleCtrlMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXFlowStatsReplyVer10.java | 38 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXFlowStatsReplyVer13.java | 31 |
public OVXFlowStatsReplyVer10(long xid, Set<OFStatsReplyFlags> flags,
List<OFFlowStatsEntry> entries) {
super(xid, flags, entries);
// TODO Auto-generated constructor stub
}
@Override
public void virtualize(final PhysicalSwitch sw) {
if (this.getXid() != 0) {
sw.removeFlowMods(this);
return;
}
HashMap<Integer, List<OVXFlowStatsReply>> stats = new HashMap<Integer, List<OVXFlowStatsReply>>();
for(OFFlowStatsEntry entry: this.getEntries()) {
OVXFlowStatsReply single_reply=OVXFactoryInst.myOVXFactory.buildOVXFlowStatsReply(this.getXid(), this.getFlags(),Arrays.asList(entry));
int tid=getTidFromCookie(entry.getCookie().getValue()) ;
addToStats(tid, single_reply, stats);
}
sw.setFlowStatistics(stats);
}
private void addToStats(int tid, OVXFlowStatsReply reply,
HashMap<Integer, List<OVXFlowStatsReply>> stats) {
List<OVXFlowStatsReply> statsList = stats.get(tid);
if (statsList == null) {
statsList = new LinkedList<OVXFlowStatsReply>();
}
statsList.add(reply);
stats.put(tid, statsList);
}
private int getTidFromCookie(long cookie) {
return (int) (cookie >> 32);
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionNiciraDecTtlVer10.java | 76 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionNiciraDecTtlVer11.java | 76 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionNiciraDecTtlVer12.java | 76 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionNiciraDecTtlVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionNiciraDecTtlVer14.java | 76 |
throw new UnsupportedOperationException("OFActionNiciraDecTtlVer10 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionNiciraDecTtl> {
@Override
public OFActionNiciraDecTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
// fixed value property subtype == 0x12
short subtype = bb.readShort();
if(subtype != (short) 0x12)
throw new OFParseError("Wrong subtype: Expected=0x12(0x12), got="+subtype);
// pad: 2 bytes
bb.skipBytes(2);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionNiciraDecTtlVer10Funnel FUNNEL = new OFActionNiciraDecTtlVer10Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 221 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 221 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
//
@Override
public OFBsnFlowChecksumBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
return new OFBsnFlowChecksumBucketStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 144 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGenericStatsRequest.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
@Override
public OFBsnGenericStatsRequest.Builder setTlvs(List<OFBsnTlv> tlvs) {
this.tlvs = tlvs;
this.tlvsSet = true;
return this;
}
@Override
public OFBsnGenericStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 221 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 221 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
//
@Override
public OFBsnPortCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
return new OFBsnPortCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 141 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 245 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCalientFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFCalientFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x80f958L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public int getDataLength() {
return dataLength;
}
@Override
public OFCalientFlowStatsReply.Builder setDataLength(int dataLength) {
this.dataLength = dataLength;
this.dataLengthSet = true;
return this;
}
@Override
public List<OFCalientFlowStatsEntry> getFlowStats() {
return flowStats;
}
@Override
public OFCalientFlowStatsReply.Builder setFlowStats(List<OFCalientFlowStatsEntry> flowStats) {
this.flowStats = flowStats;
this.flowStatsSet = true;
return this;
}
@Override
public OFCalientFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 141 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 245 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCalientPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFCalientPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x80f958L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public int getDataLength() {
return dataLength;
}
@Override
public OFCalientPortStatsReply.Builder setDataLength(int dataLength) {
this.dataLength = dataLength;
this.dataLengthSet = true;
return this;
}
@Override
public List<OFCalientPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFCalientPortStatsReply.Builder setEntries(List<OFCalientPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFCalientPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 144 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGenericStatsRequest.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
@Override
public OFBsnGenericStatsRequest.Builder setTlvs(List<OFBsnTlv> tlvs) {
this.tlvs = tlvs;
this.tlvsSet = true;
return this;
}
@Override
public OFBsnGenericStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 142 |
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 755 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 755 |
StringBuilder b = new StringBuilder("OFFlowStatsEntryVer11(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("instructions=").append(instructions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 142 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 720 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 720 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 720 |
StringBuilder b = new StringBuilder("OFPortDescVer11(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("hwAddr=").append(hwAddr);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("config=").append(config);
b.append(", ");
b.append("state=").append(state);
b.append(", ");
b.append("curr=").append(curr);
b.append(", ");
b.append("advertised=").append(advertised);
b.append(", ");
b.append("supported=").append(supported);
b.append(", ");
b.append("peer=").append(peer);
b.append(", ");
b.append("currSpeed=").append(currSpeed);
b.append(", ");
b.append("maxSpeed=").append(maxSpeed);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 142 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 149 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 265 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnFlowIdle.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnFlowIdle.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowIdle.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFBsnFlowIdle.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFBsnFlowIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 265 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 149 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFBsnFlowIdle.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBsnFlowIdle.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowIdle.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFBsnFlowIdle.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFBsnFlowIdle build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 142 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 142 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 250 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 284 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 284 |
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.3");
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFPacketIn.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
int totalLen = this.totalLenSet ? this.totalLen : parentMessage.totalLen;
OFPacketInReason reason = this.reasonSet ? this.reason : parentMessage.reason;
if(reason == null)
throw new NullPointerException("Property reason must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFPacketInVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 398 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 398 |
return new OFTableFeaturesVer13(
tableId,
name,
metadataMatch,
metadataWrite,
config,
maxEntries,
properties
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeatures> {
@Override
public OFTableFeatures readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 5 bytes
bb.skipBytes(5);
String name = ChannelUtils.readFixedLengthString(bb, 32);
U64 metadataMatch = U64.ofRaw(bb.readLong());
U64 metadataWrite = U64.ofRaw(bb.readLong());
long config = U32.f(bb.readInt());
long maxEntries = U32.f(bb.readInt());
List<OFTableFeatureProp> properties = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFTableFeaturePropVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 303 |
public OFBsnDebugCounterDescStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 505 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 505 |
OFBsnFlowIdleVer13 other = (OFBsnFlowIdleVer13) obj;
if( xid != other.xid)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if( priority != other.priority)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + priority;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 341 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 341 |
public OFCalientFlowStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x80f958L
int experimenter = bb.readInt();
if(experimenter != 0x80f958)
throw new OFParseError("Wrong experimenter: Expected=0x80f958L(0x80f958L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 303 |
public OFBsnDebugCounterDescStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 145 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 256 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 256 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 256 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 145 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 145 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 145 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 145 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFAggregateStatsReply.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFAggregateStatsReply.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public OFAggregateStatsReply.Builder setFlowCount(long flowCount) {
this.flowCount = flowCount;
this.flowCountSet = true;
return this;
}
//
@Override
public OFAggregateStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 218 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 250 |
BuilderWithParent(OFTableStatsEntryVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch() {
return match;
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions() {
return writeActions;
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) {
this.writeActions = writeActions;
this.writeActionsSet = true;
return this;
}
@Override
public long getApplyActions() {
return applyActions;
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) {
this.applyActions = applyActions;
this.applyActionsSet = true;
return this;
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 249 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 924 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1714 |
if (!field.arePrerequisitesOK(this))
return null;
Object result;
switch (field.id) {
case IN_PORT:
result = inPort;
break;
case ETH_DST:
result = ethDst;
break;
case ETH_SRC:
result = ethSrc;
break;
case ETH_TYPE:
result = ethType;
break;
case VLAN_VID:
result = vlanVid;
break;
case VLAN_PCP:
result = vlanPcp;
break;
case ARP_OP:
result = ArpOpcode.of(ipProto.getIpProtocolNumber());
break;
case ARP_SPA:
result = ipv4Src;
break;
case ARP_TPA:
result = ipv4Dst;
break;
case IP_DSCP:
result = ipDscp;
break;
case IP_PROTO:
result = ipProto;
break;
case IPV4_SRC:
result = ipv4Src;
break;
case IPV4_DST:
result = ipv4Dst;
break;
case TCP_SRC:
result = tcpSrc;
break;
case TCP_DST:
result = tcpDst;
break;
case UDP_SRC:
result = tcpSrc;
break;
case UDP_DST:
result = tcpDst;
break;
case SCTP_SRC:
result = tcpSrc;
break;
case SCTP_DST:
result = tcpDst;
break;
case ICMPV4_TYPE:
result = tcpSrc;
break;
case ICMPV4_CODE:
result = tcpDst;
break;
// NOT SUPPORTED:
default:
throw new UnsupportedOperationException("OFMatch does not support matching on field " + field.getName());
}
return (F)result;
}
@SuppressWarnings("unchecked")
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
if (!isPartiallyMasked(field))
return null; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRoleStatusVer14.java | 133 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleStatusVer14.java | 239 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ROLE_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getRole() {
return role;
}
@Override
public OFRoleStatus.Builder setRole(long role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public OFControllerRoleReason getReason() {
return reason;
}
@Override
public OFRoleStatus.Builder setReason(OFControllerRoleReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleStatus.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public List<OFRoleProp> getProperties() {
return properties;
}
@Override
public OFRoleStatus.Builder setProperties(List<OFRoleProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFRoleStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 265 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 265 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 265 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 265 |
return new OFActionBsnMirrorVer11(
destPort,
vlanTag,
copyStage
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionBsnMirror> {
@Override
public OFActionBsnMirror readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1)
throw new OFParseError("Wrong subtype: Expected=0x1L(0x1L), got="+subtype);
OFPort destPort = OFPort.read4Bytes(bb);
long vlanTag = U32.f(bb.readInt());
short copyStage = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 744 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 744 |
return new OFPortStatsEntryVer11(
portNo,
rxPackets,
txPackets,
rxBytes,
txBytes,
rxDropped,
txDropped,
rxErrors,
txErrors,
rxFrameErr,
rxOverErr,
rxCrcErr,
collisions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFPortStatsEntry> {
@Override
public OFPortStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
OFPort portNo = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
U64 rxPackets = U64.ofRaw(bb.readLong());
U64 txPackets = U64.ofRaw(bb.readLong());
U64 rxBytes = U64.ofRaw(bb.readLong());
U64 txBytes = U64.ofRaw(bb.readLong());
U64 rxDropped = U64.ofRaw(bb.readLong());
U64 txDropped = U64.ofRaw(bb.readLong());
U64 rxErrors = U64.ofRaw(bb.readLong());
U64 txErrors = U64.ofRaw(bb.readLong());
U64 rxFrameErr = U64.ofRaw(bb.readLong());
U64 rxOverErr = U64.ofRaw(bb.readLong());
U64 rxCrcErr = U64.ofRaw(bb.readLong());
U64 collisions = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 142 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 248 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setImageChecksum(String imageChecksum) {
this.imageChecksum = imageChecksum;
this.imageChecksumSet = true;
return this;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setStartupConfigChecksum(String startupConfigChecksum) {
this.startupConfigChecksum = startupConfigChecksum;
this.startupConfigChecksumSet = true;
return this;
}
@Override
public OFBsnImageDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadFlagsSerializerVer14.java | 34 |
public class OFBsnLuaUploadFlagsSerializerVer13 {
public final static short BSN_LUA_UPLOAD_MORE_VAL = (short) 0x1;
public final static short BSN_LUA_UPLOAD_FORCE_VAL = (short) 0x2;
public static Set<OFBsnLuaUploadFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFBsnLuaUploadFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFBsnLuaUploadFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFBsnLuaUploadFlags> ofWireValue(short val) {
EnumSet<OFBsnLuaUploadFlags> set = EnumSet.noneOf(OFBsnLuaUploadFlags.class);
if((val & BSN_LUA_UPLOAD_MORE_VAL) != 0)
set.add(OFBsnLuaUploadFlags.BSN_LUA_UPLOAD_MORE);
if((val & BSN_LUA_UPLOAD_FORCE_VAL) != 0)
set.add(OFBsnLuaUploadFlags.BSN_LUA_UPLOAD_FORCE);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFBsnLuaUploadFlags> set) {
short wireValue = 0;
for(OFBsnLuaUploadFlags e: set) {
switch(e) {
case BSN_LUA_UPLOAD_MORE:
wireValue |= BSN_LUA_UPLOAD_MORE_VAL;
break;
case BSN_LUA_UPLOAD_FORCE:
wireValue |= BSN_LUA_UPLOAD_FORCE_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBsnLuaUploadFlags in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 129 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int vlanVid = this.vlanVidSet ? this.vlanVid : parentMessage.vlanVid;
//
return new OFBsnVlanCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 129 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long vrf = this.vrfSet ? this.vrf : parentMessage.vrf;
//
return new OFBsnVrfCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 142 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 248 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setImageChecksum(String imageChecksum) {
this.imageChecksum = imageChecksum;
this.imageChecksumSet = true;
return this;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setStartupConfigChecksum(String startupConfigChecksum) {
this.startupConfigChecksum = startupConfigChecksum;
this.startupConfigChecksumSet = true;
return this;
}
@Override
public OFBsnImageDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFFlowStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFFlowStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 848 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1638 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 2233 |
throw new NullPointerException("Property tcpDst must not be null");
//
// normalize match fields according to current OpenVSwitch behavior. When prerequisites for a field are not met
// e.g., eth_type is not set to 0x800, OVS sets the value of corresponding ignored fields (e.g.,
// ip_src, tcp_dst) to 0, and sets the wildcard bit to 1.
if(ethType.equals(EthType.IPv4)) {
// IP
if(ipProto.equals(IpProtocol.TCP) || ipProto.equals(IpProtocol.UDP) || ipProto.equals(IpProtocol.ICMP)) {
// fully speced, wildcards and all values are fine
// normalize 32-63 ipv4 src 'mask' to a full bitmask
if((wildcards & OFPFW_NW_SRC_ALL) != 0)
wildcards |= OFPFW_NW_SRC_MASK;
// normalize 32-63 ipv4 dst 'mask' to a full bitmask
if((wildcards & OFPFW_NW_DST_ALL) != 0)
wildcards |= OFPFW_NW_DST_MASK;
} else {
// normalize 32-63 ipv4 src 'mask' to a full bitmask
if((wildcards & OFPFW_NW_SRC_ALL) != 0)
wildcards |= OFPFW_NW_SRC_MASK;
// normalize 32-63 ipv4 dst 'mask' to a full bitmask
if((wildcards & OFPFW_NW_DST_ALL) != 0)
wildcards |= OFPFW_NW_DST_MASK;
// not TCP/UDP/ICMP -> Clear TP wildcards for the wire
wildcards |= (OFPFW_TP_SRC | OFPFW_TP_DST);
tcpSrc = TransportPort.NONE;
tcpDst = TransportPort.NONE;
}
} else if (ethType.equals(EthType.ARP)) {
// normalize 32-63 ipv4 src 'mask' to a full bitmask
if((wildcards & OFPFW_NW_SRC_ALL) != 0)
wildcards |= OFPFW_NW_SRC_MASK;
// normalize 32-63 ipv4 dst 'mask' to a full bitmask
if((wildcards & OFPFW_NW_DST_ALL) != 0)
wildcards |= OFPFW_NW_DST_MASK;
// ARP: clear NW_TOS / TP wildcards for the wire
wildcards |= ( OFPFW_NW_TOS | OFPFW_TP_SRC | OFPFW_TP_DST);
ipDscp = IpDscp.NONE;
tcpSrc = TransportPort.NONE;
tcpDst = TransportPort.NONE;
} else {
// not even IP. Clear NW/TP wildcards for the wire
wildcards |= ( OFPFW_NW_TOS | OFPFW_NW_PROTO | OFPFW_NW_SRC_MASK | OFPFW_NW_DST_MASK | OFPFW_TP_SRC | OFPFW_TP_DST);
ipDscp = IpDscp.NONE;
ipProto = IpProtocol.NONE;
ipv4Src = IPv4Address.NONE;
ipv4Dst = IPv4Address.NONE;
tcpSrc = TransportPort.NONE;
tcpDst = TransportPort.NONE;
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFQueueStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFQueueStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFTableStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFTableStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFGroupDescStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFGroupDescStatsReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFGroupStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFGroupStatsReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFPortStatsEntry> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFPortStatsReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 256 |
public OFBsnDebugCounterDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 297 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 294 |
public OFBsnGentableBucketStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 26)
throw new OFParseError("Wrong length: Expected=26(26), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2fL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDelete.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDelete.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFBsnGentableEntryDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
List<OFBsnTlv> key = this.keySet ? this.key : parentMessage.key;
if(key == null)
throw new NullPointerException("Property key must not be null");
//
return new OFBsnGentableEntryDeleteVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 387 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 387 |
public OFBsnGentableEntryDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 60)
throw new OFParseError("Wrong length: Expected=60(60), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 301 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 294 |
public OFBsnPortCounterStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 28)
throw new OFParseError("Wrong length: Expected=28(28), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x8L
int subtype = bb.readInt();
if(subtype != 0x8) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfigStatsReply.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterConfigStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFMeterBand> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFMeterConfigStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterStats> getEntries() {
return entries;
}
@Override
public OFMeterStatsReply.Builder setEntries(List<OFMeterStats> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFMeterStats> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFMeterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortDesc> getEntries() {
return entries;
}
@Override
public OFPortDescStatsReply.Builder setEntries(List<OFPortDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFPortDesc> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFPortDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsReply.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFTableFeatures> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFTableFeaturesStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsRequest.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFTableFeatures> entries = this.entriesSet ? this.entries : parentMessage.entries;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
//
return new OFTableFeaturesStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 256 |
public OFBsnDebugCounterDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 297 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 294 |
public OFBsnGentableBucketStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 26)
throw new OFParseError("Wrong length: Expected=26(26), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 387 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 387 |
public OFBsnGentableEntryDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 60)
throw new OFParseError("Wrong length: Expected=60(60), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 301 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 294 |
public OFBsnPortCounterStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 28)
throw new OFParseError("Wrong length: Expected=28(28), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x8L
int subtype = bb.readInt();
if(subtype != 0x8) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 397 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xbL
int subtype = bb.readInt();
if(subtype != 0xb)
throw new OFParseError("Wrong subtype: Expected=0xbL(0xbL), got="+subtype);
boolean enabled = (bb.readByte() != 0);
// pad: 1 bytes
bb.skipBytes(1);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
U64 cookie = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 688 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 688 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 732 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 701 |
}
//
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 688 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 688 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 728 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 701 |
}
//
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 688 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 688 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 727 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 701 |
}
//
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 688 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 688 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 728 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 701 |
}
//
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 688 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 688 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 726 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 701 |
}
//
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 323 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 569 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 363 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 641 |
}
@Override
public long getInstructions() {
return instructions;
}
@Override
public OFTableStatsEntry.Builder setInstructions(long instructions) {
this.instructions = instructions;
this.instructionsSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableStatsEntry.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 536 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 538 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 536 |
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_12).oxms().fromMasked(valueWithMask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
initBuilder();
this.oxmListBuilder.unset(field);
updateOxmList();
return this;
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMatchV3> {
@Override
public OFMatchV3 readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFOxmList oxmList = OFOxmList.readFrom(bb, length - (bb.readerIndex() - start), OFOxmVer12.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 230 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 230 |
return new OFActionBsnGentableVer13(
tableId,
key
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionBsnGentable> {
@Override
public OFActionBsnGentable readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5)
throw new OFParseError("Wrong subtype: Expected=0x5L(0x5L), got="+subtype);
long tableId = U32.f(bb.readInt());
List<OFBsnTlv> key = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 346 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 346 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 346 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 346 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 346 |
return new OFBsnVportQInQVer10(
portNo,
ingressTpid,
ingressVlanId,
egressTpid,
egressVlanId,
ifName
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnVportQInQ> {
@Override
public OFBsnVportQInQ readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long portNo = U32.f(bb.readInt());
int ingressTpid = U16.f(bb.readShort());
int ingressVlanId = U16.f(bb.readShort());
int egressTpid = U16.f(bb.readShort());
int egressVlanId = U16.f(bb.readShort());
String ifName = ChannelUtils.readFixedLengthString(bb, 16); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnArpOffloadVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnArpOffloadVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnArpOffloadVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnArpOffload> {
@Override
public OFInstructionBsnArpOffload readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1)
throw new OFParseError("Wrong subtype: Expected=0x1L(0x1L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnArpOffloadVer13Funnel FUNNEL = new OFInstructionBsnArpOffloadVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnAutoNegotiationVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnAutoNegotiationVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnAutoNegotiationVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnAutoNegotiation> {
@Override
public OFInstructionBsnAutoNegotiation readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xbL
int subtype = bb.readInt();
if(subtype != 0xb)
throw new OFParseError("Wrong subtype: Expected=0xbL(0xbL), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnAutoNegotiationVer13Funnel FUNNEL = new OFInstructionBsnAutoNegotiationVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDenyVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDenyVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnDenyVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnDeny> {
@Override
public OFInstructionBsnDeny readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5)
throw new OFParseError("Wrong subtype: Expected=0x5L(0x5L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnDenyVer13Funnel FUNNEL = new OFInstructionBsnDenyVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDhcpOffloadVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDhcpOffloadVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnDhcpOffloadVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnDhcpOffload> {
@Override
public OFInstructionBsnDhcpOffload readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2)
throw new OFParseError("Wrong subtype: Expected=0x2L(0x2L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnDhcpOffloadVer13Funnel FUNNEL = new OFInstructionBsnDhcpOffloadVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableL3Ver13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableL3Ver14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnDisableL3Ver13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnDisableL3> {
@Override
public OFInstructionBsnDisableL3 readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd)
throw new OFParseError("Wrong subtype: Expected=0xdL(0xdL), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnDisableL3Ver13Funnel FUNNEL = new OFInstructionBsnDisableL3Ver13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableSrcMacCheckVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableSrcMacCheckVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnDisableSrcMacCheckVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnDisableSrcMacCheck> {
@Override
public OFInstructionBsnDisableSrcMacCheck readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x0L
int subtype = bb.readInt();
if(subtype != 0x0)
throw new OFParseError("Wrong subtype: Expected=0x0L(0x0L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnDisableSrcMacCheckVer13Funnel FUNNEL = new OFInstructionBsnDisableSrcMacCheckVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableVlanCountersVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableVlanCountersVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnDisableVlanCountersVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnDisableVlanCounters> {
@Override
public OFInstructionBsnDisableVlanCounters readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x9L
int subtype = bb.readInt();
if(subtype != 0x9)
throw new OFParseError("Wrong subtype: Expected=0x9L(0x9L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnDisableVlanCountersVer13Funnel FUNNEL = new OFInstructionBsnDisableVlanCountersVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPacketOfDeathVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPacketOfDeathVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnPacketOfDeathVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnPacketOfDeath> {
@Override
public OFInstructionBsnPacketOfDeath readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x6L
int subtype = bb.readInt();
if(subtype != 0x6)
throw new OFParseError("Wrong subtype: Expected=0x6L(0x6L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnPacketOfDeathVer13Funnel FUNNEL = new OFInstructionBsnPacketOfDeathVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPermitVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPermitVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnPermitVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnPermit> {
@Override
public OFInstructionBsnPermit readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4)
throw new OFParseError("Wrong subtype: Expected=0x4L(0x4L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnPermitVer13Funnel FUNNEL = new OFInstructionBsnPermitVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPrioritizePdusVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPrioritizePdusVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnPrioritizePdusVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnPrioritizePdus> {
@Override
public OFInstructionBsnPrioritizePdus readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x7L
int subtype = bb.readInt();
if(subtype != 0x7)
throw new OFParseError("Wrong subtype: Expected=0x7L(0x7L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnPrioritizePdusVer13Funnel FUNNEL = new OFInstructionBsnPrioritizePdusVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnRequireVlanXlateVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnRequireVlanXlateVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnRequireVlanXlateVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnRequireVlanXlate> {
@Override
public OFInstructionBsnRequireVlanXlate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x8L
int subtype = bb.readInt();
if(subtype != 0x8)
throw new OFParseError("Wrong subtype: Expected=0x8L(0x8L), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnRequireVlanXlateVer13Funnel FUNNEL = new OFInstructionBsnRequireVlanXlateVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnSpanDestinationVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnSpanDestinationVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionBsnSpanDestinationVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnSpanDestination> {
@Override
public OFInstructionBsnSpanDestination readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa)
throw new OFParseError("Wrong subtype: Expected=0xaL(0xaL), got="+subtype);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionBsnSpanDestinationVer13Funnel FUNNEL = new OFInstructionBsnSpanDestinationVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 367 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x21L
int subtype = bb.readInt();
if(subtype != 0x21)
throw new OFParseError("Wrong subtype: Expected=0x21L(0x21L), got="+subtype);
long timeoutMs = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb);
short slotNum = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3);
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 367 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1fL
int subtype = bb.readInt();
if(subtype != 0x1f)
throw new OFParseError("Wrong subtype: Expected=0x1fL(0x1fL), got="+subtype);
long txIntervalMs = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb);
short slotNum = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3);
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 113 |
throw new NullPointerException("OFPortStatsEntryVer10: property collisions cannot be null");
}
this.portNo = portNo;
this.rxPackets = rxPackets;
this.txPackets = txPackets;
this.rxBytes = rxBytes;
this.txBytes = txBytes;
this.rxDropped = rxDropped;
this.txDropped = txDropped;
this.rxErrors = rxErrors;
this.txErrors = txErrors;
this.rxFrameErr = rxFrameErr;
this.rxOverErr = rxOverErr;
this.rxCrcErr = rxCrcErr;
this.collisions = collisions;
}
// Accessors for OF message fields
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFTypeSerializerVer14.java | 30 |
public class OFTypeSerializerVer11 {
public final static byte HELLO_VAL = (byte) 0x0;
public final static byte ERROR_VAL = (byte) 0x1;
public final static byte ECHO_REQUEST_VAL = (byte) 0x2;
public final static byte ECHO_REPLY_VAL = (byte) 0x3;
public final static byte EXPERIMENTER_VAL = (byte) 0x4;
public final static byte FEATURES_REQUEST_VAL = (byte) 0x5;
public final static byte FEATURES_REPLY_VAL = (byte) 0x6;
public final static byte GET_CONFIG_REQUEST_VAL = (byte) 0x7;
public final static byte GET_CONFIG_REPLY_VAL = (byte) 0x8;
public final static byte SET_CONFIG_VAL = (byte) 0x9;
public final static byte PACKET_IN_VAL = (byte) 0xa;
public final static byte FLOW_REMOVED_VAL = (byte) 0xb;
public final static byte PORT_STATUS_VAL = (byte) 0xc;
public final static byte PACKET_OUT_VAL = (byte) 0xd;
public final static byte FLOW_MOD_VAL = (byte) 0xe;
public final static byte GROUP_MOD_VAL = (byte) 0xf;
public final static byte PORT_MOD_VAL = (byte) 0x10;
public final static byte TABLE_MOD_VAL = (byte) 0x11;
public final static byte STATS_REQUEST_VAL = (byte) 0x12;
public final static byte STATS_REPLY_VAL = (byte) 0x13;
public final static byte BARRIER_REQUEST_VAL = (byte) 0x14;
public final static byte BARRIER_REPLY_VAL = (byte) 0x15;
public final static byte QUEUE_GET_CONFIG_REQUEST_VAL = (byte) 0x16; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 409 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 408 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 408 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 408 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 408 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFAction> actions = this.actionsSet ? this.actions : parentMessage.actions;
if(actions == null)
throw new NullPointerException("Property actions must not be null");
//
return new OFFlowAddVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionTypeSerializerVer11.java | 43 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionTypeSerializerVer12.java | 43 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionTypeSerializerVer13.java | 44 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionTypeSerializerVer14.java | 44 |
public static Set<OFInstructionType> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFInstructionType> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFInstructionType> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFInstructionType> ofWireValue(short val) {
EnumSet<OFInstructionType> set = EnumSet.noneOf(OFInstructionType.class);
if((val & GOTO_TABLE_VAL) != 0)
set.add(OFInstructionType.GOTO_TABLE);
if((val & WRITE_METADATA_VAL) != 0)
set.add(OFInstructionType.WRITE_METADATA);
if((val & WRITE_ACTIONS_VAL) != 0)
set.add(OFInstructionType.WRITE_ACTIONS);
if((val & APPLY_ACTIONS_VAL) != 0)
set.add(OFInstructionType.APPLY_ACTIONS);
if((val & CLEAR_ACTIONS_VAL) != 0)
set.add(OFInstructionType.CLEAR_ACTIONS);
if((val & EXPERIMENTER_VAL) != 0)
set.add(OFInstructionType.EXPERIMENTER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdNiciraDecTtlVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdNiciraDecTtlVer14.java | 76 |
throw new UnsupportedOperationException("OFActionIdNiciraDecTtlVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdNiciraDecTtl> {
@Override
public OFActionIdNiciraDecTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
// fixed value property subtype == 0x12
short subtype = bb.readShort();
if(subtype != (short) 0x12)
throw new OFParseError("Wrong subtype: Expected=0x12(0x12), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdNiciraDecTtlVer13Funnel FUNNEL = new OFActionIdNiciraDecTtlVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 253 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGenericStatsRequest.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
@Override
public OFBsnGenericStatsRequest.Builder setTlvs(List<OFBsnTlv> tlvs) {
this.tlvs = tlvs;
this.tlvsSet = true;
return this;
}
@Override
public OFBsnGenericStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 253 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 147 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGenericStatsRequest.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
@Override
public OFBsnGenericStatsRequest.Builder setTlvs(List<OFBsnTlv> tlvs) {
this.tlvs = tlvs;
this.tlvsSet = true;
return this;
}
//
@Override
public OFBsnGenericStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 207 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 207 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2fL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDelete.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDelete.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
//
@Override
public OFBsnGentableEntryDelete build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
List<OFBsnTlv> key = this.keySet ? this.key : DEFAULT_KEY;
if(key == null)
throw new NullPointerException("Property key must not be null");
return new OFBsnGentableEntryDeleteVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 216 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
//
@Override
public OFBsnVlanCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int vlanVid = this.vlanVidSet ? this.vlanVid : DEFAULT_VLAN_VID;
return new OFBsnVlanCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 216 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
//
@Override
public OFBsnVrfCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long vrf = this.vrfSet ? this.vrf : DEFAULT_VRF;
return new OFBsnVrfCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 74 |
private final Logger log = LogManager.getLogger(OVXFlowDeleteVer13.class.getName());
private OVXSwitch sw = null;
private final List<OFAction> approvedActions = new LinkedList<OFAction>();
private long ovxCookie = -1;
@Override
public void devirtualize(final OVXSwitch sw) {
/* Drop LLDP-matching messages sent by some applications */
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE) != null) {
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE).getValue() == Ethernet.TYPE_LLDP) {
return;
}
}
this.sw = sw;
FlowTable ft = this.sw.getFlowTable();
int bufferId = OFBufferId.NO_BUFFER.getInt();
if (sw.getFromBufferMap(this.bufferId.getInt()) != null) {
bufferId = sw.getFromBufferMap(this.bufferId.getInt()).getBufferId().getInt();
}
short inport = -1;
if (((OFMatchV3)this.getMatch()).get(MatchField.IN_PORT) != null) {
inport = ((OFMatchV3) this.getMatch()).get(MatchField.IN_PORT).getShortPortNumber();
}
/* let flow table process FlowMod, generate cookie as needed */
System.out.println("HandleFlowMod"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 203 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFFlowStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFFlowStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 145 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 253 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 253 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 253 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 253 |
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 253 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 145 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 145 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 145 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 145 |
}
@Override
public OFType getType() {
return OFType.PACKET_OUT;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketOut.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketOut.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getInPort() {
return inPort;
}
@Override
public OFPacketOut.Builder setInPort(OFPort inPort) {
this.inPort = inPort;
this.inPortSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFPacketOut.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPacketOut.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFPacketOut build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 205 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFPortStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFPortStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 203 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFQueueStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFQueueStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 203 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFTableStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFTableStatsReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 735 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 704 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 691 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 731 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 730 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 731 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 729 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 704 |
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFGroupDescStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFGroupDescStatsReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFGroupStatsEntry> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFGroupStatsReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 532 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch() {
return match;
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions() {
return writeActions;
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) {
this.writeActions = writeActions;
this.writeActionsSet = true;
return this;
}
@Override
public long getApplyActions() {
return applyActions;
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) {
this.applyActions = applyActions;
this.applyActionsSet = true;
return this;
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 468 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 254 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch() {
return match;
}
@Override
public OFTableStatsEntry.Builder setMatch(OFMatchBmap match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public int getWildcards() {
return wildcards;
}
@Override
public OFTableStatsEntry.Builder setWildcards(int wildcards) {
this.wildcards = wildcards;
this.wildcardsSet = true;
return this;
}
@Override
public long getWriteActions() {
return writeActions;
}
@Override
public OFTableStatsEntry.Builder setWriteActions(long writeActions) {
this.writeActions = writeActions;
this.writeActionsSet = true;
return this;
}
@Override
public long getApplyActions() {
return applyActions;
}
@Override
public OFTableStatsEntry.Builder setApplyActions(long applyActions) {
this.applyActions = applyActions;
this.applyActionsSet = true;
return this;
}
@Override
public U64 getWriteSetfields()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfigStatsReply.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFMeterConfigStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFMeterBand> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFMeterConfigStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterStats> getEntries() {
return entries;
}
@Override
public OFMeterStatsReply.Builder setEntries(List<OFMeterStats> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFMeterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFMeterStats> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFMeterStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortDesc> getEntries() {
return entries;
}
@Override
public OFPortDescStatsReply.Builder setEntries(List<OFPortDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFPortDesc> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFPortDescStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsReply.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFTableFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFTableFeatures> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFTableFeaturesStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsRequest.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFTableFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFTableFeatures> entries = this.entriesSet ? this.entries : DEFAULT_ENTRIES;
if(entries == null)
throw new NullPointerException("Property entries must not be null");
return new OFTableFeaturesStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortModPropOpticalVer14.java | 127 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModPropOpticalVer14.java | 227 |
@Override
public int getType() {
return 0x1;
}
@Override
public long getConfigure() {
return configure;
}
@Override
public OFPortModPropOptical.Builder setConfigure(long configure) {
this.configure = configure;
this.configureSet = true;
return this;
}
@Override
public long getFreqLdma() {
return freqLdma;
}
@Override
public OFPortModPropOptical.Builder setFreqLdma(long freqLdma) {
this.freqLdma = freqLdma;
this.freqLdmaSet = true;
return this;
}
@Override
public long getFlOffset() {
return flOffset;
}
@Override
public OFPortModPropOptical.Builder setFlOffset(long flOffset) {
this.flOffset = flOffset;
this.flOffsetSet = true;
return this;
}
@Override
public long getGridSpan() {
return gridSpan;
}
@Override
public OFPortModPropOptical.Builder setGridSpan(long gridSpan) {
this.gridSpan = gridSpan;
this.gridSpanSet = true;
return this;
}
@Override
public long getTxPwr() {
return txPwr;
}
@Override
public OFPortModPropOptical.Builder setTxPwr(long txPwr) {
this.txPwr = txPwr;
this.txPwrSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortModPropOptical build() {
long configure = this.configureSet ? this.configure : parentMessage.configure; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 540 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 540 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 540 |
OFAsyncGetReplyVer13 other = (OFAsyncGetReplyVer13) obj;
if( xid != other.xid)
return false;
if( packetInMaskEqualMaster != other.packetInMaskEqualMaster)
return false;
if( packetInMaskSlave != other.packetInMaskSlave)
return false;
if( portStatusMaskEqualMaster != other.portStatusMaskEqualMaster)
return false;
if( portStatusMaskSlave != other.portStatusMaskSlave)
return false;
if( flowRemovedMaskEqualMaster != other.flowRemovedMaskEqualMaster)
return false;
if( flowRemovedMaskSlave != other.flowRemovedMaskSlave)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (packetInMaskEqualMaster ^ (packetInMaskEqualMaster >>> 32));
result = prime * (int) (packetInMaskSlave ^ (packetInMaskSlave >>> 32));
result = prime * (int) (portStatusMaskEqualMaster ^ (portStatusMaskEqualMaster >>> 32));
result = prime * (int) (portStatusMaskSlave ^ (portStatusMaskSlave >>> 32));
result = prime * (int) (flowRemovedMaskEqualMaster ^ (flowRemovedMaskEqualMaster >>> 32));
result = prime * (int) (flowRemovedMaskSlave ^ (flowRemovedMaskSlave >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 155 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
public void setActions(List<OFAction> actions) {
OFInstructionApplyActionsVer13.Builder builder = new OFInstructionApplyActionsVer13.Builder();
builder.setActions(actions);
this.instructions = Collections.singletonList((OFInstruction)builder.build());
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
public OFFlowDeleteStrict.Builder createBuilder() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnChecksumVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnChecksumVer14.java | 76 |
throw new UnsupportedOperationException("OFActionIdBsnChecksumVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdBsnChecksum> {
@Override
public OFActionIdBsnChecksum readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4)
throw new OFParseError("Wrong subtype: Expected=0x4L(0x4L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnChecksumVer13Funnel FUNNEL = new OFActionIdBsnChecksumVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnGentableVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnGentableVer14.java | 76 |
throw new UnsupportedOperationException("OFActionIdBsnGentableVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdBsnGentable> {
@Override
public OFActionIdBsnGentable readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5)
throw new OFParseError("Wrong subtype: Expected=0x5L(0x5L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnGentableVer13Funnel FUNNEL = new OFActionIdBsnGentableVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnMirrorVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnMirrorVer14.java | 76 |
throw new UnsupportedOperationException("OFActionIdBsnMirrorVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdBsnMirror> {
@Override
public OFActionIdBsnMirror readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1)
throw new OFParseError("Wrong subtype: Expected=0x1L(0x1L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnMirrorVer13Funnel FUNNEL = new OFActionIdBsnMirrorVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnSetTunnelDstVer13.java | 77 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnSetTunnelDstVer14.java | 77 |
throw new UnsupportedOperationException("OFActionIdBsnSetTunnelDstVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdBsnSetTunnelDst> {
@Override
public OFActionIdBsnSetTunnelDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2)
throw new OFParseError("Wrong subtype: Expected=0x2L(0x2L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnSetTunnelDstVer13Funnel FUNNEL = new OFActionIdBsnSetTunnelDstVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 138 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 239 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaUpload.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public OFBsnLuaUpload.Builder setFlags(Set<OFBsnLuaUploadFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getFilename() {
return filename;
}
@Override
public OFBsnLuaUpload.Builder setFilename(String filename) {
this.filename = filename;
this.filenameSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaUpload.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaUpload build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnArpOffloadVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnArpOffloadVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnArpOffloadVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnArpOffload> {
@Override
public OFInstructionIdBsnArpOffload readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1)
throw new OFParseError("Wrong subtype: Expected=0x1L(0x1L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnArpOffloadVer13Funnel FUNNEL = new OFInstructionIdBsnArpOffloadVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnAutoNegotiationVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnAutoNegotiationVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnAutoNegotiationVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnAutoNegotiation> {
@Override
public OFInstructionIdBsnAutoNegotiation readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xbL
int subtype = bb.readInt();
if(subtype != 0xb)
throw new OFParseError("Wrong subtype: Expected=0xbL(0xbL), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnAutoNegotiationVer13Funnel FUNNEL = new OFInstructionIdBsnAutoNegotiationVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDenyVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDenyVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnDenyVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnDeny> {
@Override
public OFInstructionIdBsnDeny readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5)
throw new OFParseError("Wrong subtype: Expected=0x5L(0x5L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnDenyVer13Funnel FUNNEL = new OFInstructionIdBsnDenyVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDhcpOffloadVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDhcpOffloadVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnDhcpOffloadVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnDhcpOffload> {
@Override
public OFInstructionIdBsnDhcpOffload readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2)
throw new OFParseError("Wrong subtype: Expected=0x2L(0x2L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnDhcpOffloadVer13Funnel FUNNEL = new OFInstructionIdBsnDhcpOffloadVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableL3Ver13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableL3Ver14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnDisableL3Ver13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnDisableL3> {
@Override
public OFInstructionIdBsnDisableL3 readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd)
throw new OFParseError("Wrong subtype: Expected=0xdL(0xdL), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnDisableL3Ver13Funnel FUNNEL = new OFInstructionIdBsnDisableL3Ver13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableSrcMacCheckVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableSrcMacCheckVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnDisableSrcMacCheckVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnDisableSrcMacCheck> {
@Override
public OFInstructionIdBsnDisableSrcMacCheck readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x0L
int subtype = bb.readInt();
if(subtype != 0x0)
throw new OFParseError("Wrong subtype: Expected=0x0L(0x0L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnDisableSrcMacCheckVer13Funnel FUNNEL = new OFInstructionIdBsnDisableSrcMacCheckVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableVlanCountersVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableVlanCountersVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnDisableVlanCountersVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnDisableVlanCounters> {
@Override
public OFInstructionIdBsnDisableVlanCounters readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x9L
int subtype = bb.readInt();
if(subtype != 0x9)
throw new OFParseError("Wrong subtype: Expected=0x9L(0x9L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnDisableVlanCountersVer13Funnel FUNNEL = new OFInstructionIdBsnDisableVlanCountersVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnInternalPriorityVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnInternalPriorityVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnInternalPriorityVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnInternalPriority> {
@Override
public OFInstructionIdBsnInternalPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xcL
int subtype = bb.readInt();
if(subtype != 0xc)
throw new OFParseError("Wrong subtype: Expected=0xcL(0xcL), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnInternalPriorityVer13Funnel FUNNEL = new OFInstructionIdBsnInternalPriorityVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPacketOfDeathVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPacketOfDeathVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnPacketOfDeathVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnPacketOfDeath> {
@Override
public OFInstructionIdBsnPacketOfDeath readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x6L
int subtype = bb.readInt();
if(subtype != 0x6)
throw new OFParseError("Wrong subtype: Expected=0x6L(0x6L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnPacketOfDeathVer13Funnel FUNNEL = new OFInstructionIdBsnPacketOfDeathVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPermitVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPermitVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnPermitVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnPermit> {
@Override
public OFInstructionIdBsnPermit readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4)
throw new OFParseError("Wrong subtype: Expected=0x4L(0x4L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnPermitVer13Funnel FUNNEL = new OFInstructionIdBsnPermitVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPrioritizePdusVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPrioritizePdusVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnPrioritizePdusVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnPrioritizePdus> {
@Override
public OFInstructionIdBsnPrioritizePdus readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x7L
int subtype = bb.readInt();
if(subtype != 0x7)
throw new OFParseError("Wrong subtype: Expected=0x7L(0x7L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnPrioritizePdusVer13Funnel FUNNEL = new OFInstructionIdBsnPrioritizePdusVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnRequireVlanXlateVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnRequireVlanXlateVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnRequireVlanXlateVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnRequireVlanXlate> {
@Override
public OFInstructionIdBsnRequireVlanXlate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x8L
int subtype = bb.readInt();
if(subtype != 0x8)
throw new OFParseError("Wrong subtype: Expected=0x8L(0x8L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnRequireVlanXlateVer13Funnel FUNNEL = new OFInstructionIdBsnRequireVlanXlateVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnSpanDestinationVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnSpanDestinationVer14.java | 76 |
throw new UnsupportedOperationException("OFInstructionIdBsnSpanDestinationVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsnSpanDestination> {
@Override
public OFInstructionIdBsnSpanDestination readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa)
throw new OFParseError("Wrong subtype: Expected=0xaL(0xaL), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdBsnSpanDestinationVer13Funnel FUNNEL = new OFInstructionIdBsnSpanDestinationVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 138 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 239 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaUpload.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public OFBsnLuaUpload.Builder setFlags(Set<OFBsnLuaUploadFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getFilename() {
return filename;
}
@Override
public OFBsnLuaUpload.Builder setFilename(String filename) {
this.filename = filename;
this.filenameSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaUpload.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaUpload build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 96 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 96 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 96 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 96 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 96 |
throw new NullPointerException("OFBsnVportL2GreVer10: property ifName cannot be null");
}
this.flags = flags;
this.portNo = portNo;
this.loopbackPortNo = loopbackPortNo;
this.localMac = localMac;
this.nhMac = nhMac;
this.srcIp = srcIp;
this.dstIp = dstIp;
this.dscp = dscp;
this.ttl = ttl;
this.vpn = vpn;
this.rateLimit = rateLimit;
this.ifName = ifName;
}
// Accessors for OF message fields
@Override
public int getType() {
return 0x1;
}
@Override
public Set<OFBsnVportL2GreFlags> getFlags() {
return flags;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPort getLoopbackPortNo() {
return loopbackPortNo;
}
@Override
public MacAddress getLocalMac() {
return localMac;
}
@Override
public MacAddress getNhMac() {
return nhMac;
}
@Override
public IPv4Address getSrcIp() {
return srcIp;
}
@Override
public IPv4Address getDstIp() {
return dstIp;
}
@Override
public short getDscp() {
return dscp;
}
@Override
public short getTtl() {
return ttl;
}
@Override
public long getVpn() {
return vpn;
}
@Override
public long getRateLimit() {
return rateLimit;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 862 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 862 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 862 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 900 |
StringBuilder b = new StringBuilder("OFPortStatsEntryVer10(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("rxPackets=").append(rxPackets);
b.append(", ");
b.append("txPackets=").append(txPackets);
b.append(", ");
b.append("rxBytes=").append(rxBytes);
b.append(", ");
b.append("txBytes=").append(txBytes);
b.append(", ");
b.append("rxDropped=").append(rxDropped);
b.append(", ");
b.append("txDropped=").append(txDropped);
b.append(", ");
b.append("rxErrors=").append(rxErrors);
b.append(", ");
b.append("txErrors=").append(txErrors);
b.append(", ");
b.append("rxFrameErr=").append(rxFrameErr);
b.append(", ");
b.append("rxOverErr=").append(rxOverErr);
b.append(", ");
b.append("rxCrcErr=").append(rxCrcErr);
b.append(", ");
b.append("collisions=").append(collisions);
b.append(")"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 122 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 122 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 122 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 122 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 122 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
//
return new OFPortStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 122 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 122 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 122 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 122 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
//
return new OFGroupStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 121 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLog.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3fL;
}
@Override
public OFBsnLoglevel getLoglevel() {
return loglevel;
}
@Override
public OFBsnLog.Builder setLoglevel(OFBsnLoglevel loglevel) {
this.loglevel = loglevel;
this.loglevelSet = true;
return this;
}
@Override
public String getData() {
return data;
}
@Override
public OFBsnLog.Builder setData(String data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLog build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBsnLoglevel loglevel = this.loglevelSet ? this.loglevel : parentMessage.loglevel;
if(loglevel == null)
throw new NullPointerException("Property loglevel must not be null");
String data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnLogVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 117 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeatures getFeatures() {
return features;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFeatures(OFMeterFeatures features) {
this.features = features;
this.featuresSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFMeterFeatures features = this.featuresSet ? this.features : parentMessage.features;
if(features == null)
throw new NullPointerException("Property features must not be null");
//
return new OFMeterFeaturesStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 459 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 459 |
throw new UnsupportedOperationException("Property inPhyPort not supported in version 1.3");
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFPacketIn.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
//
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
int totalLen = this.totalLenSet ? this.totalLen : DEFAULT_TOTAL_LEN;
if(!this.reasonSet)
throw new IllegalStateException("Property reason doesn't have default value -- must be set");
if(reason == null)
throw new NullPointerException("Property reason must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFPacketInVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 812 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 811 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 811 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 811 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 811 |
StringBuilder b = new StringBuilder("OFFlowAddVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("bufferId=").append(bufferId);
b.append(", ");
b.append("outPort=").append(outPort);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("actions=").append(actions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 592 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 592 |
}
//
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowStatsEntryVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 145 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 251 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setImageChecksum(String imageChecksum) {
this.imageChecksum = imageChecksum;
this.imageChecksumSet = true;
return this;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setStartupConfigChecksum(String startupConfigChecksum) {
this.startupConfigChecksum = startupConfigChecksum;
this.startupConfigChecksumSet = true;
return this;
}
@Override
public OFBsnImageDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 251 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 145 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setImageChecksum(String imageChecksum) {
this.imageChecksum = imageChecksum;
this.imageChecksumSet = true;
return this;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
@Override
public OFBsnImageDescStatsReply.Builder setStartupConfigChecksum(String startupConfigChecksum) {
this.startupConfigChecksum = startupConfigChecksum;
this.startupConfigChecksumSet = true;
return this;
}
//
@Override
public OFBsnImageDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 74 |
private final Logger log = LogManager.getLogger(OVXFlowDeleteStrictVer13.class.getName());
private OVXSwitch sw = null;
private final List<OFAction> approvedActions = new LinkedList<OFAction>();
private long ovxCookie = -1;
@Override
public void devirtualize(final OVXSwitch sw) {
/* Drop LLDP-matching messages sent by some applications */
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE) != null) {
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE).getValue() == Ethernet.TYPE_LLDP) {
return;
}
}
this.sw = sw;
FlowTable ft = this.sw.getFlowTable();
int bufferId = OFBufferId.NO_BUFFER.getInt();
if (sw.getFromBufferMap(this.bufferId.getInt()) != null) {
bufferId = sw.getFromBufferMap(this.bufferId.getInt()).getBufferId().getInt();
}
short inport = -1;
if (((OFMatchV3)this.getMatch()).get(MatchField.IN_PORT) != null) {
inport = ((OFMatchV3) this.getMatch()).get(MatchField.IN_PORT).getShortPortNumber();
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 152 |
| net/onrc/openvirtex/messages/actions/ver13/OVXActionOutputVer13.java | 148 |
match.getEthDst().getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId);
approvedActions.addAll(lUtils.unsetLinkFields(false, false));
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), fm);
throw new DroppedMessageException();
}
} else {
this.log.error(
"Cannot retrieve the virtual link between ports {} {}, dropping message",
dstPort, inPort);
return;
}
}
route.generateRouteFMs(fm.clone());
final short OFPP_IN_PORT_SHORT = (short) 0xFFf8;
// add the output action with the physical outPort (srcPort
// of the route)
if (inPort.getPhysicalPortNumber() != route
.getPathSrcPort().getPortNo().getShortPortNumber()) {
approvedActions.add(OVXFactoryInst.myFactory.actions().
output(route.getPathSrcPort().getPortNo(), 0));
} else {
approvedActions.add(OVXFactoryInst.myFactory.actions().
output(OFPort.IN_PORT, 0));
}
} else {
/*
* SingleSwitch and BigSwitch with inPort & outPort
* belonging to the same physical switch
*/
if (inPort.isEdge()) {
if (outPort.isEdge()) {
// TODO: this is logically incorrect, i have to do
// this because we always add the rewriting actions
// in the flowMod. Change it.
if (GlobalConfig.bnvTagType == TAG.TOS) {
TenantMapperTos.prependUnRewriteActions((OFMatchV1) fm.getMatch(), approvedActions); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 412 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 271 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 275 |
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(this.getXid(), this.getCookie(), this.getCookieMask(), this.getTableId(), this.getIdleTimeout(), this.getHardTimeout(), this.getPriority(), this.getBufferId(), this.getOutPort(), this.getOutGroup(), this.getFlags(), this.getMatch(), this.getInstructions());
}
return flowMod;
}
public Map<String, Object> toMap() {
final Map<String, Object> map = new LinkedHashMap<String, Object>();
if (this.match != null) {
map.put("match", OVXFactoryInst.myOVXFactory.buildOVXMatchV3(match).toMap());
}
LinkedList<Map<String, Object>> actions = new LinkedList<Map<String, Object>>();
for (OFAction act : this.getActions()) {
try {
actions.add(OVXUtil.actionToMap(act));
} catch (UnknownActionException e) {
log.warn("Ignoring action {} because {}", act, e.getMessage());
}
}
map.put("instructionApplyActionsList", actions); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 436 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 436 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 436 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 436 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 436 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 436 |
OFGroupAddVer11 other = (OFGroupAddVer11) obj;
if( xid != other.xid)
return false;
if (groupType == null) {
if (other.groupType != null)
return false;
} else if (!groupType.equals(other.groupType))
return false;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
if (buckets == null) {
if (other.buckets != null)
return false;
} else if (!buckets.equals(other.buckets))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((groupType == null) ? 0 : groupType.hashCode());
result = prime * result + ((group == null) ? 0 : group.hashCode());
result = prime * result + ((buckets == null) ? 0 : buckets.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 487 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 487 |
OFBsnGenericStatsRequestVer13 other = (OFBsnGenericStatsRequestVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (tlvs == null) {
if (other.tlvs != null)
return false;
} else if (!tlvs.equals(other.tlvs))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((tlvs == null) ? 0 : tlvs.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 452 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 452 |
OFBsnGentableClearRequestVer13 other = (OFBsnGentableClearRequestVer13) obj;
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
if (checksumMask == null) {
if (other.checksumMask != null)
return false;
} else if (!checksumMask.equals(other.checksumMask))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((checksum == null) ? 0 : checksum.hashCode());
result = prime * result + ((checksumMask == null) ? 0 : checksumMask.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 480 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 480 |
OFBsnImageDescStatsReplyVer13 other = (OFBsnImageDescStatsReplyVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (imageChecksum == null) {
if (other.imageChecksum != null)
return false;
} else if (!imageChecksum.equals(other.imageChecksum))
return false;
if (startupConfigChecksum == null) {
if (other.startupConfigChecksum != null)
return false;
} else if (!startupConfigChecksum.equals(other.startupConfigChecksum))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((imageChecksum == null) ? 0 : imageChecksum.hashCode());
result = prime * result + ((startupConfigChecksum == null) ? 0 : startupConfigChecksum.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 640 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 640 |
OFTableStatsEntryVer13 other = (OFTableStatsEntryVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( activeCount != other.activeCount)
return false;
if (lookupCount == null) {
if (other.lookupCount != null)
return false;
} else if (!lookupCount.equals(other.lookupCount))
return false;
if (matchedCount == null) {
if (other.matchedCount != null)
return false;
} else if (!matchedCount.equals(other.matchedCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (activeCount ^ (activeCount >>> 32));
result = prime * result + ((lookupCount == null) ? 0 : lookupCount.hashCode());
result = prime * result + ((matchedCount == null) ? 0 : matchedCount.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 336 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 336 |
}
@Override
public OFBsnLacpStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : parentMessage.actorSysPriority;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : parentMessage.actorSysMac;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : parentMessage.actorPortPriority;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : parentMessage.actorPortNum;
int actorKey = this.actorKeySet ? this.actorKey : parentMessage.actorKey;
short convergenceStatus = this.convergenceStatusSet ? this.convergenceStatus : parentMessage.convergenceStatus;
int partnerSysPriority = this.partnerSysPrioritySet ? this.partnerSysPriority : parentMessage.partnerSysPriority;
MacAddress partnerSysMac = this.partnerSysMacSet ? this.partnerSysMac : parentMessage.partnerSysMac;
if(partnerSysMac == null)
throw new NullPointerException("Property partnerSysMac must not be null");
int partnerPortPriority = this.partnerPortPrioritySet ? this.partnerPortPriority : parentMessage.partnerPortPriority;
int partnerPortNum = this.partnerPortNumSet ? this.partnerPortNum : parentMessage.partnerPortNum;
int partnerKey = this.partnerKeySet ? this.partnerKey : parentMessage.partnerKey;
//
return new OFBsnLacpStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLog.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3fL;
}
@Override
public OFBsnLoglevel getLoglevel() {
return loglevel;
}
@Override
public OFBsnLog.Builder setLoglevel(OFBsnLoglevel loglevel) {
this.loglevel = loglevel;
this.loglevelSet = true;
return this;
}
@Override
public String getData() {
return data;
}
@Override
public OFBsnLog.Builder setData(String data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLog build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.loglevelSet)
throw new IllegalStateException("Property loglevel doesn't have default value -- must be set");
if(loglevel == null)
throw new NullPointerException("Property loglevel must not be null");
String data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnLogVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 196 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 196 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeatures getFeatures() {
return features;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFeatures(OFMeterFeatures features) {
this.features = features;
this.featuresSet = true;
return this;
}
//
@Override
public OFMeterFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
if(!this.featuresSet)
throw new IllegalStateException("Property features doesn't have default value -- must be set");
if(features == null)
throw new NullPointerException("Property features must not be null");
return new OFMeterFeaturesStatsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 201 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 201 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 201 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 201 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 201 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
//
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
return new OFPortStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 201 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 201 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 201 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 201 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
//
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
OFGroup group = this.groupSet ? this.group : DEFAULT_GROUP_ID;
if(group == null)
throw new NullPointerException("Property group must not be null");
return new OFGroupStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 98 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 98 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 98 |
throw new NullPointerException("OFPortDescVer11: property peer cannot be null");
}
this.portNo = portNo;
this.hwAddr = hwAddr;
this.name = name;
this.config = config;
this.state = state;
this.curr = curr;
this.advertised = advertised;
this.supported = supported;
this.peer = peer;
this.currSpeed = currSpeed;
this.maxSpeed = maxSpeed;
}
// Accessors for OF message fields
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public String getName() {
return name;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public long getCurrSpeed() {
return currSpeed;
}
@Override
public long getMaxSpeed() {
return maxSpeed;
}
@Override
public List<OFPortDescProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 651 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 666 |
flags,
cookie,
packetCount,
byteCount,
match,
instructions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFFlowStatsEntry> {
@Override
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropTypeSerializerVer14.java | 47 |
public final static short EXPERIMENTER_VAL = (short) 0xfffe;
public final static short EXPERIMENTER_MISS_VAL = (short) 0xffff;
public static OFTableFeaturePropType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFTableFeaturePropType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFTableFeaturePropType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFTableFeaturePropType ofWireValue(short val) {
switch(val) {
case INSTRUCTIONS_VAL:
return OFTableFeaturePropType.INSTRUCTIONS;
case INSTRUCTIONS_MISS_VAL:
return OFTableFeaturePropType.INSTRUCTIONS_MISS;
case NEXT_TABLES_VAL:
return OFTableFeaturePropType.NEXT_TABLES;
case NEXT_TABLES_MISS_VAL:
return OFTableFeaturePropType.NEXT_TABLES_MISS;
case WRITE_ACTIONS_VAL:
return OFTableFeaturePropType.WRITE_ACTIONS;
case WRITE_ACTIONS_MISS_VAL:
return OFTableFeaturePropType.WRITE_ACTIONS_MISS;
case APPLY_ACTIONS_VAL:
return OFTableFeaturePropType.APPLY_ACTIONS;
case APPLY_ACTIONS_MISS_VAL:
return OFTableFeaturePropType.APPLY_ACTIONS_MISS;
case MATCH_VAL:
return OFTableFeaturePropType.MATCH;
case WILDCARDS_VAL:
return OFTableFeaturePropType.WILDCARDS;
case WRITE_SETFIELD_VAL:
return OFTableFeaturePropType.WRITE_SETFIELD;
case WRITE_SETFIELD_MISS_VAL:
return OFTableFeaturePropType.WRITE_SETFIELD_MISS;
case APPLY_SETFIELD_VAL:
return OFTableFeaturePropType.APPLY_SETFIELD;
case APPLY_SETFIELD_MISS_VAL:
return OFTableFeaturePropType.APPLY_SETFIELD_MISS;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 567 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 567 |
return new OFBsnLacpStatsEntryVer13(
portNo,
actorSysPriority,
actorSysMac,
actorPortPriority,
actorPortNum,
actorKey,
convergenceStatus,
partnerSysPriority,
partnerSysMac,
partnerPortPriority,
partnerPortNum,
partnerKey
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnLacpStatsEntry> {
@Override
public OFBsnLacpStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
OFPort portNo = OFPort.read4Bytes(bb);
int actorSysPriority = U16.f(bb.readShort());
MacAddress actorSysMac = MacAddress.read6Bytes(bb);
int actorPortPriority = U16.f(bb.readShort());
int actorPortNum = U16.f(bb.readShort());
int actorKey = U16.f(bb.readShort());
short convergenceStatus = U8.f(bb.readByte());
// pad: 1 bytes
bb.skipBytes(1);
int partnerSysPriority = U16.f(bb.readShort());
MacAddress partnerSysMac = MacAddress.read6Bytes(bb);
int partnerPortPriority = U16.f(bb.readShort());
int partnerPortNum = U16.f(bb.readShort());
int partnerKey = U16.f(bb.readShort());
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 747 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 803 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 803 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 803 |
} else if (!peer.equals(other.peer))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((config == null) ? 0 : config.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result + ((curr == null) ? 0 : curr.hashCode());
result = prime * result + ((advertised == null) ? 0 : advertised.hashCode());
result = prime * result + ((supported == null) ? 0 : supported.hashCode());
result = prime * result + ((peer == null) ? 0 : peer.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 363 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 363 |
return new OFGroupStatsEntryVer11(
group,
refCount,
packetCount,
byteCount,
bucketStats
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFGroupStatsEntry> {
@Override
public OFGroupStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
OFGroup group = OFGroup.read4Bytes(bb);
long refCount = U32.f(bb.readInt());
// pad: 4 bytes
bb.skipBytes(4);
U64 packetCount = U64.ofRaw(bb.readLong());
U64 byteCount = U64.ofRaw(bb.readLong());
List<OFBucketCounter> bucketStats = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBucketCounterVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 122 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 217 |
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public OFMeterFeatures.Builder setMaxMeter(long maxMeter) {
this.maxMeter = maxMeter;
this.maxMeterSet = true;
return this;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public OFMeterFeatures.Builder setBandTypes(long bandTypes) {
this.bandTypes = bandTypes;
this.bandTypesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFMeterFeatures.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public OFMeterFeatures.Builder setMaxBands(short maxBands) {
this.maxBands = maxBands;
this.maxBandsSet = true;
return this;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFMeterFeatures.Builder setMaxColor(short maxColor) {
this.maxColor = maxColor;
this.maxColorSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterFeatures build() {
long maxMeter = this.maxMeterSet ? this.maxMeter : parentMessage.maxMeter; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 122 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 217 |
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public OFMeterFeatures.Builder setMaxMeter(long maxMeter) {
this.maxMeter = maxMeter;
this.maxMeterSet = true;
return this;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public OFMeterFeatures.Builder setBandTypes(long bandTypes) {
this.bandTypes = bandTypes;
this.bandTypesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFMeterFeatures.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public OFMeterFeatures.Builder setMaxBands(short maxBands) {
this.maxBands = maxBands;
this.maxBandsSet = true;
return this;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFMeterFeatures.Builder setMaxColor(short maxColor) {
this.maxColor = maxColor;
this.maxColorSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterFeatures build() {
long maxMeter = this.maxMeterSet ? this.maxMeter : parentMessage.maxMeter; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBadActionCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBadActionErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBadRequestCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBadRequestErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 130 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 130 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableReplyVer10.java | 127 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableReplyVer10.java | 222 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetL2TableReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x18L;
}
@Override
public boolean isL2TableEnable() {
return l2TableEnable;
}
@Override
public OFBsnSetL2TableReply.Builder setL2TableEnable(boolean l2TableEnable) {
this.l2TableEnable = l2TableEnable;
this.l2TableEnableSet = true;
return this;
}
@Override
public int getL2TablePriority() {
return l2TablePriority;
}
@Override
public OFBsnSetL2TableReply.Builder setL2TablePriority(int l2TablePriority) {
this.l2TablePriority = l2TablePriority;
this.l2TablePrioritySet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetL2TableReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetL2TableReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFFlowModFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFFlowModFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFHelloFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFHelloFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 212 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 222 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 222 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 189 |
BuilderWithParent(OFPortDescVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPortModFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFPortModFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFQueueOpFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFQueueOpFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBadInstructionCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBadInstructionErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBadMatchCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBadMatchErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 130 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 130 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFCapabilitiesSerializerVer11.java | 44 |
| org/projectfloodlight/openflow/protocol/ver12/OFCapabilitiesSerializerVer12.java | 44 |
| org/projectfloodlight/openflow/protocol/ver13/OFCapabilitiesSerializerVer13.java | 44 |
| org/projectfloodlight/openflow/protocol/ver14/OFCapabilitiesSerializerVer14.java | 44 |
public static Set<OFCapabilities> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFCapabilities> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFCapabilities> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFCapabilities> ofWireValue(int val) {
EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);
if((val & FLOW_STATS_VAL) != 0)
set.add(OFCapabilities.FLOW_STATS);
if((val & TABLE_STATS_VAL) != 0)
set.add(OFCapabilities.TABLE_STATS);
if((val & PORT_STATS_VAL) != 0)
set.add(OFCapabilities.PORT_STATS);
if((val & IP_REASM_VAL) != 0)
set.add(OFCapabilities.IP_REASM);
if((val & QUEUE_STATS_VAL) != 0)
set.add(OFCapabilities.QUEUE_STATS);
if((val & ARP_MATCH_IP_VAL) != 0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFGroupModFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFGroupModFailedErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 39 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 39 |
final static int LENGTH = 64;
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static MacAddress DEFAULT_HW_ADDR = MacAddress.NONE;
private final static String DEFAULT_NAME = "";
private final static Set<OFPortConfig> DEFAULT_CONFIG = ImmutableSet.<OFPortConfig>of();
private final static Set<OFPortState> DEFAULT_STATE = ImmutableSet.<OFPortState>of();
private final static Set<OFPortFeatures> DEFAULT_CURR = ImmutableSet.<OFPortFeatures>of();
private final static Set<OFPortFeatures> DEFAULT_ADVERTISED = ImmutableSet.<OFPortFeatures>of();
private final static Set<OFPortFeatures> DEFAULT_SUPPORTED = ImmutableSet.<OFPortFeatures>of();
private final static Set<OFPortFeatures> DEFAULT_PEER = ImmutableSet.<OFPortFeatures>of();
private final static long DEFAULT_CURR_SPEED = 0x0L;
private final static long DEFAULT_MAX_SPEED = 0x0L;
// OF message fields
private final OFPort portNo;
private final MacAddress hwAddr;
private final String name;
private final Set<OFPortConfig> config;
private final Set<OFPortState> state;
private final Set<OFPortFeatures> curr;
private final Set<OFPortFeatures> advertised;
private final Set<OFPortFeatures> supported;
private final Set<OFPortFeatures> peer;
private final long currSpeed;
private final long maxSpeed;
//
// Immutable default instance
final static OFPortDescVer11 DEFAULT = new OFPortDescVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFSwitchConfigFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFSwitchConfigFailedErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFTableModFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFTableModFailedErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 130 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 130 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFRoleRequestFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFRoleRequestFailedErrorMsgVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 341 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 341 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 303 |
public OFBsnDebugCounterDescStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 512 |
public OFBsnGenericStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 222 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearReply.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public OFBsnGentableClearReply.Builder setDeletedCount(long deletedCount) {
this.deletedCount = deletedCount;
this.deletedCountSet = true;
return this;
}
@Override
public long getErrorCount() {
return errorCount;
}
@Override
public OFBsnGentableClearReply.Builder setErrorCount(long errorCount) {
this.errorCount = errorCount;
this.errorCountSet = true;
return this;
}
@Override
public OFBsnGentableClearReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 232 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableClearRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 130 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 130 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnRoleStatusVer13.java | 130 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnRoleStatusVer13.java | 231 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnRoleStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x37L;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnRoleStatus.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public OFBsnControllerRoleReason getReason() {
return reason;
}
@Override
public OFBsnRoleStatus.Builder setReason(OFBsnControllerRoleReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFBsnRoleStatus.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFBsnRoleStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.METER_MOD_FAILED;
}
@Override
public OFMeterModFailedCode getCode() {
return code;
}
@Override
public OFMeterModFailedErrorMsg.Builder setCode(OFMeterModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFMeterModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFMeterModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFMeterModFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFMeterModFailedErrorMsgVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_FEATURES_FAILED;
}
@Override
public OFTableFeaturesFailedCode getCode() {
return code;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setCode(OFTableFeaturesFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableFeaturesFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFTableFeaturesFailedCode code = this.codeSet ? this.code : parentMessage.code;
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFTableFeaturesFailedErrorMsgVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 222 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearReply.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public OFBsnGentableClearReply.Builder setDeletedCount(long deletedCount) {
this.deletedCount = deletedCount;
this.deletedCountSet = true;
return this;
}
@Override
public long getErrorCount() {
return errorCount;
}
@Override
public OFBsnGentableClearReply.Builder setErrorCount(long errorCount) {
this.errorCount = errorCount;
this.errorCountSet = true;
return this;
}
@Override
public OFBsnGentableClearReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 232 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableClearRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 130 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 130 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 227 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 37 |
private static final Logger logger = LoggerFactory.getLogger(OFFlowAddVer14.class);
// version: 1.4
final static byte WIRE_VERSION = 5;
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static int DEFAULT_IMPORTANCE = 0x0;
private final static Match DEFAULT_MATCH = OFFactoryVer14.MATCH_WILDCARD_ALL;
private final static List<OFInstruction> DEFAULT_INSTRUCTIONS = ImmutableList.<OFInstruction>of();
// OF message fields
private final long xid;
private final U64 cookie;
private final U64 cookieMask;
private final TableId tableId;
private final int idleTimeout;
private final int hardTimeout;
private final int priority;
private final OFBufferId bufferId;
private final OFPort outPort;
private final OFGroup outGroup;
private final Set<OFFlowModFlags> flags;
private final int importance;
private final Match match;
private final List<OFInstruction> instructions;
//
// Immutable default instance
final static OFFlowAddVer14 DEFAULT = new OFFlowAddVer14( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/OFFlowAdd.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowDelete.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowDeleteStrict.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowModify.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowModifyStrict.java | 55 |
OFFlowAdd build();
OFVersion getVersion();
OFType getType();
long getXid();
Builder setXid(long xid);
U64 getCookie();
Builder setCookie(U64 cookie);
U64 getCookieMask() throws UnsupportedOperationException;
Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException;
TableId getTableId() throws UnsupportedOperationException;
Builder setTableId(TableId tableId) throws UnsupportedOperationException;
OFFlowModCommand getCommand();
int getIdleTimeout();
Builder setIdleTimeout(int idleTimeout);
int getHardTimeout();
Builder setHardTimeout(int hardTimeout);
int getPriority();
Builder setPriority(int priority);
OFBufferId getBufferId();
Builder setBufferId(OFBufferId bufferId);
OFPort getOutPort();
Builder setOutPort(OFPort outPort);
OFGroup getOutGroup() throws UnsupportedOperationException;
Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException;
Set<OFFlowModFlags> getFlags();
Builder setFlags(Set<OFFlowModFlags> flags);
Match getMatch();
Builder setMatch(Match match);
List<OFInstruction> getInstructions() throws UnsupportedOperationException;
Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException;
List<OFAction> getActions() throws UnsupportedOperationException;
Builder setActions(List<OFAction> actions) throws UnsupportedOperationException;
int getImportance() throws UnsupportedOperationException;
Builder setImportance(int importance) throws UnsupportedOperationException;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 142 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 142 |
BuilderWithParent(OFGroupStatsEntryVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 141 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 242 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaUpload.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public OFBsnLuaUpload.Builder setFlags(Set<OFBsnLuaUploadFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getFilename() {
return filename;
}
@Override
public OFBsnLuaUpload.Builder setFilename(String filename) {
this.filename = filename;
this.filenameSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaUpload.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaUpload build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 242 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 141 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaUpload.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public OFBsnLuaUpload.Builder setFlags(Set<OFBsnLuaUploadFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public String getFilename() {
return filename;
}
@Override
public OFBsnLuaUpload.Builder setFilename(String filename) {
this.filename = filename;
this.filenameSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaUpload.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaUpload build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 123 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : parentMessage.slotNum;
//
return new OFBsnPduRxTimeoutVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 439 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 439 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 439 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 453 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 426 |
U64 rxPackets = this.rxPacketsSet ? this.rxPackets : parentMessage.rxPackets;
if(rxPackets == null)
throw new NullPointerException("Property rxPackets must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : parentMessage.txPackets;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 rxBytes = this.rxBytesSet ? this.rxBytes : parentMessage.rxBytes;
if(rxBytes == null)
throw new NullPointerException("Property rxBytes must not be null");
U64 txBytes = this.txBytesSet ? this.txBytes : parentMessage.txBytes;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 rxDropped = this.rxDroppedSet ? this.rxDropped : parentMessage.rxDropped;
if(rxDropped == null)
throw new NullPointerException("Property rxDropped must not be null");
U64 txDropped = this.txDroppedSet ? this.txDropped : parentMessage.txDropped;
if(txDropped == null)
throw new NullPointerException("Property txDropped must not be null");
U64 rxErrors = this.rxErrorsSet ? this.rxErrors : parentMessage.rxErrors;
if(rxErrors == null)
throw new NullPointerException("Property rxErrors must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : parentMessage.txErrors;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 129 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 223 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 628 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 628 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 651 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 666 |
hardTimeout,
cookie,
packetCount,
byteCount,
match,
instructions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFFlowStatsEntry> {
@Override
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 128 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 128 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 128 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 129 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 223 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 129 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 223 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnArpIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3cL;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnArpIdle.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnArpIdle.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public OFBsnArpIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
int vlanVid = this.vlanVidSet ? this.vlanVid : parentMessage.vlanVid;
IPv4Address ipv4Addr = this.ipv4AddrSet ? this.ipv4Addr : parentMessage.ipv4Addr;
if(ipv4Addr == null)
throw new NullPointerException("Property ipv4Addr must not be null");
//
return new OFBsnArpIdleVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 118 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 118 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x32L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnGentableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long bucketsSize = this.bucketsSizeSet ? this.bucketsSize : parentMessage.bucketsSize;
//
return new OFBsnGentableSetBucketsSizeVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetLacpReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnSetLacpReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
//
return new OFBsnSetLacpReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3dL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableSetBucketsSize.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnTableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnTableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long bucketsSize = this.bucketsSizeSet ? this.bucketsSize : parentMessage.bucketsSize;
//
return new OFBsnTableSetBucketsSizeVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfigStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterConfigStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long meterId = this.meterIdSet ? this.meterId : parentMessage.meterId;
//
return new OFMeterConfigStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long meterId = this.meterIdSet ? this.meterId : parentMessage.meterId;
//
return new OFMeterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 223 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 224 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 223 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 331 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 172 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 326 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 172 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 326 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 325 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 325 |
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFeaturesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public OFFeaturesReply.Builder setDatapathId(DatapathId datapathId) {
this.datapathId = datapathId;
this.datapathIdSet = true;
return this;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public OFFeaturesReply.Builder setNBuffers(long nBuffers) {
this.nBuffers = nBuffers;
this.nBuffersSet = true;
return this;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public OFFeaturesReply.Builder setNTables(short nTables) {
this.nTables = nTables;
this.nTablesSet = true;
return this;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public OFFeaturesReply.Builder setCapabilities(Set<OFCapabilities> capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public long getReserved()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 118 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 118 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 118 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 118 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPort port = this.portSet ? this.port : parentMessage.port;
if(port == null)
throw new NullPointerException("Property port must not be null");
List<OFPacketQueue> queues = this.queuesSet ? this.queues : parentMessage.queues;
if(queues == null)
throw new NullPointerException("Property queues must not be null");
//
return new OFQueueGetConfigReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 188 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 188 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 188 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 188 |
return new OFBucketVer11(
weight,
watchPort,
watchGroup,
actions
);
}
}
static class Builder implements OFBucket.Builder {
// OF message fields
private boolean weightSet;
private int weight;
private boolean watchPortSet;
private OFPort watchPort;
private boolean watchGroupSet;
private OFGroup watchGroup;
private boolean actionsSet;
private List<OFAction> actions;
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 256 |
public OFBsnDebugCounterDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 378 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2eL
int subtype = bb.readInt();
if(subtype != 0x2e)
throw new OFParseError("Wrong subtype: Expected=0x2eL(0x2eL), got="+subtype);
GenTableId tableId = GenTableId.read2Bytes(bb);
int keyLength = U16.f(bb.readShort());
U128 checksum = U128.read16Bytes(bb);
List<OFBsnTlv> key = ChannelUtils.readList(bb, keyLength, OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 783 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 783 |
bb.writeByte((byte) 0x4);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// fixed value property length = 52
bb.writeShort((short) 0x34);
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x2bL
bb.writeInt(0x2b);
bb.writeByte(U8.t(message.convergenceStatus));
// pad: 3 bytes
bb.writeZero(3);
message.portNo.write4Bytes(bb);
bb.writeShort(U16.t(message.actorSysPriority));
message.actorSysMac.write6Bytes(bb);
bb.writeShort(U16.t(message.actorPortPriority));
bb.writeShort(U16.t(message.actorPortNum));
bb.writeShort(U16.t(message.actorKey));
bb.writeShort(U16.t(message.partnerSysPriority));
message.partnerSysMac.write6Bytes(bb);
bb.writeShort(U16.t(message.partnerPortPriority));
bb.writeShort(U16.t(message.partnerPortNum));
bb.writeShort(U16.t(message.partnerKey));
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnLacpConvergenceNotifVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBadActionErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBadRequestErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFFlowModFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFHelloFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFPortModFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFQueueOpFailedErrorMsgVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBadInstructionErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBadMatchErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 748 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 748 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 748 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 748 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 748 |
public OFFlowAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 0
short command = bb.readByte();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFGroupModFailedErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFSwitchConfigFailedErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFTableModFailedErrorMsgVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 748 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 748 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 748 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 748 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 748 |
public OFFlowAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 0
short command = bb.readByte();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 711 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 711 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 711 |
bb.writeByte((byte) 0x3);
// fixed value property type = 11
bb.writeByte((byte) 0xb);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeShort(U16.t(message.priority));
bb.writeByte(U8.t(message.reason));
message.tableId.writeByte(bb);
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeLong(message.packetCount.getValue());
bb.writeLong(message.byteCount.getValue());
message.match.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowRemovedVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFRoleRequestFailedErrorMsgVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 373 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 373 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x28L
int subtype = bb.readInt();
if(subtype != 0x28)
throw new OFParseError("Wrong subtype: Expected=0x28L(0x28L), got="+subtype);
U64 cookie = U64.ofRaw(bb.readLong());
int priority = U16.f(bb.readShort());
TableId tableId = TableId.readByte(bb);
// pad: 5 bytes
bb.skipBytes(5);
Match match = ChannelUtilsVer13.readOFMatch(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 80 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 80 |
throw new NullPointerException("OFBsnLacpStatsEntryVer13: property partnerSysMac cannot be null");
}
this.portNo = portNo;
this.actorSysPriority = actorSysPriority;
this.actorSysMac = actorSysMac;
this.actorPortPriority = actorPortPriority;
this.actorPortNum = actorPortNum;
this.actorKey = actorKey;
this.convergenceStatus = convergenceStatus;
this.partnerSysPriority = partnerSysPriority;
this.partnerSysMac = partnerSysMac;
this.partnerPortPriority = partnerPortPriority;
this.partnerPortNum = partnerPortNum;
this.partnerKey = partnerKey;
}
// Accessors for OF message fields
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 792 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 788 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 787 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 788 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 786 |
public OFFlowAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 0
short command = bb.readByte();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.METER_MOD_FAILED;
}
@Override
public OFMeterModFailedCode getCode() {
return code;
}
@Override
public OFMeterModFailedErrorMsg.Builder setCode(OFMeterModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFMeterModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFMeterModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFMeterModFailedErrorMsgVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_FEATURES_FAILED;
}
@Override
public OFTableFeaturesFailedCode getCode() {
return code;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setCode(OFTableFeaturesFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFTableFeaturesFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.codeSet)
throw new IllegalStateException("Property code doesn't have default value -- must be set");
if(code == null)
throw new NullPointerException("Property code must not be null");
OFErrorCauseData data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFTableFeaturesFailedErrorMsgVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 763 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 763 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 763 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 763 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 763 |
public OFFlowAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 0
short command = bb.readByte();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 290 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 290 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 290 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 290 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 290 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 290 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 290 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 290 |
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : parentMessage.outGroup;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : parentMessage.cookieMask;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
//
return new OFAggregateStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 386 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 386 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 386 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 386 |
OFBucketVer11 other = (OFBucketVer11) obj;
if( weight != other.weight)
return false;
if (watchPort == null) {
if (other.watchPort != null)
return false;
} else if (!watchPort.equals(other.watchPort))
return false;
if (watchGroup == null) {
if (other.watchGroup != null)
return false;
} else if (!watchGroup.equals(other.watchGroup))
return false;
if (actions == null) {
if (other.actions != null)
return false;
} else if (!actions.equals(other.actions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + weight;
result = prime * result + ((watchPort == null) ? 0 : watchPort.hashCode());
result = prime * result + ((watchGroup == null) ? 0 : watchGroup.hashCode());
result = prime * result + ((actions == null) ? 0 : actions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 645 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 644 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 644 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 644 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 644 |
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
List<OFAction> actions = this.actionsSet ? this.actions : DEFAULT_ACTIONS;
if(actions == null)
throw new NullPointerException("Property actions must not be null");
return new OFFlowAddVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 758 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 758 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 788 |
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFPortStatsEntry> {
@Override
public OFPortStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
OFPort portNo = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
U64 rxPackets = U64.ofRaw(bb.readLong());
U64 txPackets = U64.ofRaw(bb.readLong());
U64 rxBytes = U64.ofRaw(bb.readLong());
U64 txBytes = U64.ofRaw(bb.readLong());
U64 rxDropped = U64.ofRaw(bb.readLong());
U64 txDropped = U64.ofRaw(bb.readLong());
U64 rxErrors = U64.ofRaw(bb.readLong());
U64 txErrors = U64.ofRaw(bb.readLong());
U64 rxFrameErr = U64.ofRaw(bb.readLong());
U64 rxOverErr = U64.ofRaw(bb.readLong());
U64 rxCrcErr = U64.ofRaw(bb.readLong());
U64 collisions = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionTypeSerializerVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionTypeSerializerVer13.java | 48 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionTypeSerializerVer14.java | 48 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFActionType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFActionType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFActionType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFActionType ofWireValue(short val) {
switch(val) {
case OUTPUT_VAL:
return OFActionType.OUTPUT;
case COPY_TTL_OUT_VAL:
return OFActionType.COPY_TTL_OUT;
case COPY_TTL_IN_VAL:
return OFActionType.COPY_TTL_IN;
case SET_MPLS_TTL_VAL:
return OFActionType.SET_MPLS_TTL;
case DEC_MPLS_TTL_VAL:
return OFActionType.DEC_MPLS_TTL;
case PUSH_VLAN_VAL:
return OFActionType.PUSH_VLAN;
case POP_VLAN_VAL:
return OFActionType.POP_VLAN;
case PUSH_MPLS_VAL:
return OFActionType.PUSH_MPLS;
case POP_MPLS_VAL:
return OFActionType.POP_MPLS;
case SET_QUEUE_VAL:
return OFActionType.SET_QUEUE;
case GROUP_VAL:
return OFActionType.GROUP;
case SET_NW_TTL_VAL:
return OFActionType.SET_NW_TTL;
case DEC_NW_TTL_VAL:
return OFActionType.DEC_NW_TTL;
case SET_FIELD_VAL:
return OFActionType.SET_FIELD;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLoglevelSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLoglevelSerializerVer14.java | 30 |
public class OFBsnLoglevelSerializerVer13 {
public final static byte BSN_LOGLEVEL_MSG_VAL = (byte) 0x0;
public final static byte BSN_LOGLEVEL_ERROR_VAL = (byte) 0x1;
public final static byte BSN_LOGLEVEL_WARN_VAL = (byte) 0x2;
public final static byte BSN_LOGLEVEL_INFO_VAL = (byte) 0x3;
public final static byte BSN_LOGLEVEL_VERBOSE_VAL = (byte) 0x4;
public final static byte BSN_LOGLEVEL_TRACE_VAL = (byte) 0x5;
public static OFBsnLoglevel readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnLoglevel e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnLoglevel e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnLoglevel ofWireValue(byte val) {
switch(val) {
case BSN_LOGLEVEL_MSG_VAL:
return OFBsnLoglevel.BSN_LOGLEVEL_MSG;
case BSN_LOGLEVEL_ERROR_VAL:
return OFBsnLoglevel.BSN_LOGLEVEL_ERROR;
case BSN_LOGLEVEL_WARN_VAL:
return OFBsnLoglevel.BSN_LOGLEVEL_WARN;
case BSN_LOGLEVEL_INFO_VAL:
return OFBsnLoglevel.BSN_LOGLEVEL_INFO;
case BSN_LOGLEVEL_VERBOSE_VAL:
return OFBsnLoglevel.BSN_LOGLEVEL_VERBOSE;
case BSN_LOGLEVEL_TRACE_VAL:
return OFBsnLoglevel.BSN_LOGLEVEL_TRACE;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnLoglevel in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 798 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 666 |
public OFCalientFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
U64 cookie = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 50 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFErrorType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFErrorType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFErrorType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFErrorType ofWireValue(short val) {
switch(val) {
case HELLO_FAILED_VAL:
return OFErrorType.HELLO_FAILED;
case BAD_REQUEST_VAL:
return OFErrorType.BAD_REQUEST;
case BAD_ACTION_VAL:
return OFErrorType.BAD_ACTION;
case BAD_INSTRUCTION_VAL:
return OFErrorType.BAD_INSTRUCTION;
case BAD_MATCH_VAL:
return OFErrorType.BAD_MATCH;
case FLOW_MOD_FAILED_VAL:
return OFErrorType.FLOW_MOD_FAILED;
case GROUP_MOD_FAILED_VAL:
return OFErrorType.GROUP_MOD_FAILED;
case PORT_MOD_FAILED_VAL:
return OFErrorType.PORT_MOD_FAILED;
case TABLE_MOD_FAILED_VAL:
return OFErrorType.TABLE_MOD_FAILED;
case QUEUE_OP_FAILED_VAL:
return OFErrorType.QUEUE_OP_FAILED;
case SWITCH_CONFIG_FAILED_VAL:
return OFErrorType.SWITCH_CONFIG_FAILED;
case ROLE_REQUEST_FAILED_VAL:
return OFErrorType.ROLE_REQUEST_FAILED;
case METER_MOD_FAILED_VAL:
return OFErrorType.METER_MOD_FAILED;
case TABLE_FEATURES_FAILED_VAL:
return OFErrorType.TABLE_FEATURES_FAILED;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFStatsTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsTypeSerializerVer14.java | 49 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFStatsType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFStatsType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFStatsType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFStatsType ofWireValue(short val) {
switch(val) {
case DESC_VAL:
return OFStatsType.DESC;
case FLOW_VAL:
return OFStatsType.FLOW;
case AGGREGATE_VAL:
return OFStatsType.AGGREGATE;
case TABLE_VAL:
return OFStatsType.TABLE;
case PORT_VAL:
return OFStatsType.PORT;
case QUEUE_VAL:
return OFStatsType.QUEUE;
case GROUP_VAL:
return OFStatsType.GROUP;
case GROUP_DESC_VAL:
return OFStatsType.GROUP_DESC;
case GROUP_FEATURES_VAL:
return OFStatsType.GROUP_FEATURES;
case METER_VAL:
return OFStatsType.METER;
case METER_CONFIG_VAL:
return OFStatsType.METER_CONFIG;
case METER_FEATURES_VAL:
return OFStatsType.METER_FEATURES;
case TABLE_FEATURES_VAL:
return OFStatsType.TABLE_FEATURES;
case PORT_DESC_VAL:
return OFStatsType.PORT_DESC;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 146 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 146 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 146 |
BuilderWithParent(OFQueueStatsEntryVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 724 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 724 |
public void write(ChannelBuffer bb, OFFlowStatsEntryVer11 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
message.tableId.writeByte(bb);
// pad: 1 bytes
bb.writeZero(1);
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
bb.writeShort(U16.t(message.priority));
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
// pad: 6 bytes
bb.writeZero(6);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.packetCount.getValue());
bb.writeLong(message.byteCount.getValue());
message.match.writeTo(bb);
ChannelUtils.writeList(bb, message.instructions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowStatsEntryVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x32L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
//
@Override
public OFBsnGentableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long bucketsSize = this.bucketsSizeSet ? this.bucketsSize : DEFAULT_BUCKETS_SIZE;
return new OFBsnGentableSetBucketsSizeVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 103 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2bL;
}
@Override
public short getConvergenceStatus() {
return convergenceStatus;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public int getActorKey() {
return actorKey;
}
@Override
public int getPartnerSysPriority() {
return partnerSysPriority;
}
@Override
public MacAddress getPartnerSysMac() {
return partnerSysMac;
}
@Override
public int getPartnerPortPriority() {
return partnerPortPriority;
}
@Override
public int getPartnerPortNum() {
return partnerPortNum;
}
@Override
public int getPartnerKey() {
return partnerKey;
}
public OFBsnLacpConvergenceNotif.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnLacpConvergenceNotif.Builder {
final OFBsnLacpConvergenceNotifVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 205 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 205 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 205 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
//
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
short slotNum = this.slotNumSet ? this.slotNum : DEFAULT_SLOT_NUM;
return new OFBsnPduRxTimeoutVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 216 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 369 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 416 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 438 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 438 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 193 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortDesc.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortDesc.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFPortDesc.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public OFPortDesc.Builder setConfig(Set<OFPortConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public OFPortDesc.Builder setState(Set<OFPortState> state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public Set<OFPortFeatures> getCurr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 142 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 142 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 152 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 152 |
BuilderWithParent(OFGroupStatsEntryVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 264 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 264 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 286 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 286 |
private boolean bucketStatsSet;
private List<OFBucketCounter> bucketStats;
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 125 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 217 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnArpIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3cL;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnArpIdle.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnArpIdle.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
//
@Override
public OFBsnArpIdle build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
int vlanVid = this.vlanVidSet ? this.vlanVid : DEFAULT_VLAN_VID;
IPv4Address ipv4Addr = this.ipv4AddrSet ? this.ipv4Addr : DEFAULT_IPV4_ADDR;
if(ipv4Addr == null)
throw new NullPointerException("Property ipv4Addr must not be null");
return new OFBsnArpIdleVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetLacpReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
//
@Override
public OFBsnSetLacpReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
return new OFBsnSetLacpReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3dL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableSetBucketsSize.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnTableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
//
@Override
public OFBsnTableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long bucketsSize = this.bucketsSizeSet ? this.bucketsSize : DEFAULT_BUCKETS_SIZE;
return new OFBsnTableSetBucketsSizeVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 217 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 196 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 196 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfigStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
//
@Override
public OFMeterConfigStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long meterId = this.meterIdSet ? this.meterId : DEFAULT_METER_ID;
return new OFMeterConfigStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 196 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 196 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
//
@Override
public OFMeterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
long meterId = this.meterIdSet ? this.meterId : DEFAULT_METER_ID;
return new OFMeterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 217 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 285 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 522 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 305 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 566 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 305 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 566 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 323 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 597 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 310 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 577 |
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowAdd.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowAdd.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowAdd.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowAdd.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowAdd.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 284 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 521 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 305 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 566 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 305 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 566 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 319 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 593 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 310 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 577 |
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDeleteStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDeleteStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDeleteStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDeleteStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 284 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 521 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 305 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 566 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 305 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 566 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 592 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 310 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 577 |
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowDelete.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowDelete.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowDelete.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowDelete.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowDelete.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 284 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 521 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 305 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 566 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 305 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 566 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 319 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 593 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 310 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 577 |
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModifyStrict.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModifyStrict.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModifyStrict.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModifyStrict.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModifyStrict.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 284 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 521 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 305 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 566 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 305 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 566 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 317 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 591 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 310 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 577 |
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowModify.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public OFFlowModify.Builder setHardTimeout(int hardTimeout) {
this.hardTimeout = hardTimeout;
this.hardTimeoutSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowModify.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFFlowModify.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowModify.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 152 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 280 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 152 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 280 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 152 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 280 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 152 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 280 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 286 |
}
@Override
public OFType getType() {
return OFType.PORT_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortMod.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFPortMod.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFPortMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFPortMod.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public long getAdvertise() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 192 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 192 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 192 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 192 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
//
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFPort port = this.portSet ? this.port : DEFAULT_PORT;
if(port == null)
throw new NullPointerException("Property port must not be null");
List<OFPacketQueue> queues = this.queuesSet ? this.queues : DEFAULT_QUEUES;
if(queues == null)
throw new NullPointerException("Property queues must not be null");
return new OFQueueGetConfigReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTypeSerializerVer10.java | 55 |
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 57 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 59 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 63 |
| org/projectfloodlight/openflow/protocol/ver14/OFTypeSerializerVer14.java | 66 |
public static OFType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFType e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFType e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFType ofWireValue(byte val) {
switch(val) {
case HELLO_VAL:
return OFType.HELLO;
case ERROR_VAL:
return OFType.ERROR;
case ECHO_REQUEST_VAL:
return OFType.ECHO_REQUEST;
case ECHO_REPLY_VAL:
return OFType.ECHO_REPLY;
case EXPERIMENTER_VAL:
return OFType.EXPERIMENTER;
case FEATURES_REQUEST_VAL:
return OFType.FEATURES_REQUEST;
case FEATURES_REPLY_VAL:
return OFType.FEATURES_REPLY;
case GET_CONFIG_REQUEST_VAL:
return OFType.GET_CONFIG_REQUEST;
case GET_CONFIG_REPLY_VAL:
return OFType.GET_CONFIG_REPLY;
case SET_CONFIG_VAL:
return OFType.SET_CONFIG;
case PACKET_IN_VAL:
return OFType.PACKET_IN;
case FLOW_REMOVED_VAL:
return OFType.FLOW_REMOVED;
case PORT_STATUS_VAL:
return OFType.PORT_STATUS;
case PACKET_OUT_VAL:
return OFType.PACKET_OUT;
case FLOW_MOD_VAL:
return OFType.FLOW_MOD;
case PORT_MOD_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 359 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 176 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 343 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 359 |
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPacketIn.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Match getMatch()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 357 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 260 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 260 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 260 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 260 |
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_SRC)) {
final OVXActionNetworkLayerSource srcAct =OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerSource
(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV1)this.match).getIpv4Src().getInt())));
this.approvedActions.add(0, srcAct);
}
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_DST)) {
final OVXActionNetworkLayerDestination dstAct =OVXFactoryInst.myOVXFactory.buildOVXActionNetworkLayerDestination
(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV1)this.match).getIpv4Dst().getInt())));
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.flags.contains(OFFlowModFlagsSerializerVer10.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null;
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(this.getXid(),this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(),this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 37 |
private static final Logger logger = LoggerFactory.getLogger(OFFlowAddVer11.class);
// version: 1.1
final static byte WIRE_VERSION = 2;
final static int MINIMUM_LENGTH = 136;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer11.MATCH_WILDCARD_ALL;
private final static List<OFInstruction> DEFAULT_INSTRUCTIONS = ImmutableList.<OFInstruction>of();
// OF message fields
private final long xid;
private final U64 cookie;
private final U64 cookieMask;
private final TableId tableId;
private final int idleTimeout;
private final int hardTimeout;
private final int priority;
private final OFBufferId bufferId;
private final OFPort outPort;
private final OFGroup outGroup;
private final Set<OFFlowModFlags> flags;
private final Match match;
private final List<OFInstruction> instructions;
//
// Immutable default instance
final static OFFlowAddVer11 DEFAULT = new OFFlowAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 146 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 267 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 267 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 146 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 37 |
private static final Logger logger = LoggerFactory.getLogger(OFFlowAddVer12.class);
// version: 1.2
final static byte WIRE_VERSION = 3;
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer12.MATCH_WILDCARD_ALL;
private final static List<OFInstruction> DEFAULT_INSTRUCTIONS = ImmutableList.<OFInstruction>of();
// OF message fields
private final long xid;
private final U64 cookie;
private final U64 cookieMask;
private final TableId tableId;
private final int idleTimeout;
private final int hardTimeout;
private final int priority;
private final OFBufferId bufferId;
private final OFPort outPort;
private final OFGroup outGroup;
private final Set<OFFlowModFlags> flags;
private final Match match;
private final List<OFInstruction> instructions;
//
// Immutable default instance
final static OFFlowAddVer12 DEFAULT = new OFFlowAddVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setEntries(List<OFBsnDebugCounterDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setEntries(List<OFBsnDebugCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setEntries(List<OFBsnFlowChecksumBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGenericStatsReply.Builder setEntries(List<OFBsnGenericStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGenericStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setEntries(List<OFBsnGentableBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableDescStatsReply.Builder setEntries(List<OFBsnGentableDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setEntries(List<OFBsnGentableEntryDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setEntries(List<OFBsnGentableEntryStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableStatsReply.Builder setEntries(List<OFBsnGentableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnLacpStatsReply.Builder setEntries(List<OFBsnLacpStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnLacpStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnPortCounterStatsReply.Builder setEntries(List<OFBsnPortCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setEntries(List<OFBsnSwitchPipelineStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnSwitchPipelineStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setEntries(List<OFBsnTableChecksumStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnTableChecksumStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setEntries(List<OFBsnVlanCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setEntries(List<OFBsnVrfCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCalientPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFCalientPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x80f958L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFCalientPortDescStatsEntry> getPortDesc() {
return portDesc;
}
@Override
public OFCalientPortDescStatsReply.Builder setPortDesc(List<OFCalientPortDescStatsEntry> portDesc) {
this.portDesc = portDesc;
this.portDescSet = true;
return this;
}
@Override
public OFCalientPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCircuitPortsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFCircuitPortsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x748771L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFPortOptical> getEntries() {
return entries;
}
@Override
public OFCircuitPortsReply.Builder setEntries(List<OFPortOptical> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFCircuitPortsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 118 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 118 |
BuilderWithParent(OFMeterFeaturesVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public OFMeterFeatures.Builder setMaxMeter(long maxMeter) {
this.maxMeter = maxMeter;
this.maxMeterSet = true;
return this;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public OFMeterFeatures.Builder setBandTypes(long bandTypes) {
this.bandTypes = bandTypes;
this.bandTypesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFMeterFeatures.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public OFMeterFeatures.Builder setMaxBands(short maxBands) {
this.maxBands = maxBands;
this.maxBandsSet = true;
return this;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFMeterFeatures.Builder setMaxColor(short maxColor) {
this.maxColor = maxColor;
this.maxColorSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setEntries(List<OFBsnDebugCounterDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setEntries(List<OFBsnDebugCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setEntries(List<OFBsnFlowChecksumBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGenericStatsReply.Builder setEntries(List<OFBsnGenericStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGenericStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setEntries(List<OFBsnGentableBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableDescStatsReply.Builder setEntries(List<OFBsnGentableDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setEntries(List<OFBsnGentableEntryDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setEntries(List<OFBsnGentableEntryStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableStatsReply.Builder setEntries(List<OFBsnGentableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnLacpStatsReply.Builder setEntries(List<OFBsnLacpStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnLacpStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnPortCounterStatsReply.Builder setEntries(List<OFBsnPortCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setEntries(List<OFBsnSwitchPipelineStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnSwitchPipelineStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setEntries(List<OFBsnTableChecksumStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnTableChecksumStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setEntries(List<OFBsnVlanCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 220 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setEntries(List<OFBsnVrfCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/ConnectOVXLink.java | 104 |
| net/onrc/openvirtex/api/service/handlers/tenant/SetOVXLinkPath.java | 83 |
Map<String, Object> reply = new HashMap<String, Object>(
virtualLink.getDBObject());
reply.put(TenantHandler.TENANT, virtualLink.getTenantId());
resp = new JSONRPC2Response(reply, 0);
}
} catch (final MissingRequiredField e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Unable to create virtual link : "
+ e.getMessage()), 0);
} catch (final VirtualLinkException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid virtual link : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final IndexOutOfBoundException e) {
resp = new JSONRPC2Response(
new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(),
this.cmdName()
+ ": Impossible to create the virtual link, too many links in this virtual network : " | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 133 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 230 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 230 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 230 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 230 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 230 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 133 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 133 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 133 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 133 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduRxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
//
@Override
public OFBsnPduRxReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 133 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 230 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 230 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 230 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 230 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 230 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 133 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 133 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 133 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 133 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduTxReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnPduTxReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduTxReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduTxReply.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
//
@Override
public OFBsnPduTxReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 341 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1015 |
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 1805 |
int dstBitMask = (-1) << (32 - getIpv4DstCidrMaskLen());
result = IPv4AddressWithMask.of(ipv4Dst, IPv4Address.of(dstBitMask));
break;
default:
throw new UnsupportedOperationException("OFMatch does not support masked matching on field " + field.getName());
}
return (Masked<F>)result;
}
@Override
public boolean supports(MatchField<?> field) {
switch (field.id) {
case IN_PORT:
case ETH_DST:
case ETH_SRC:
case ETH_TYPE:
case VLAN_VID:
case VLAN_PCP:
case ARP_OP:
case ARP_SPA:
case ARP_TPA:
case IP_DSCP:
case IP_PROTO:
case IPV4_SRC:
case IPV4_DST:
case TCP_SRC:
case TCP_DST:
case UDP_SRC:
case UDP_DST:
case SCTP_SRC:
case SCTP_DST:
case ICMPV4_TYPE:
case ICMPV4_CODE:
return true;
default:
return false;
}
}
@Override
public boolean supportsMasked(MatchField<?> field) {
switch (field.id) {
case ARP_SPA:
case ARP_TPA:
case IPV4_SRC:
case IPV4_DST:
return true;
default:
return false;
}
}
@Override
public boolean isExact(MatchField<?> field) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 89 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 89 |
throw new NullPointerException("OFFlowStatsEntryVer11: property instructions cannot be null");
}
this.tableId = tableId;
this.durationSec = durationSec;
this.durationNsec = durationNsec;
this.priority = priority;
this.idleTimeout = idleTimeout;
this.hardTimeout = hardTimeout;
this.cookie = cookie;
this.packetCount = packetCount;
this.byteCount = byteCount;
this.match = match;
this.instructions = instructions;
}
// Accessors for OF message fields
@Override
public TableId getTableId() {
return tableId;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public int getPriority() {
return priority;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 225 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearReply.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public OFBsnGentableClearReply.Builder setDeletedCount(long deletedCount) {
this.deletedCount = deletedCount;
this.deletedCountSet = true;
return this;
}
@Override
public long getErrorCount() {
return errorCount;
}
@Override
public OFBsnGentableClearReply.Builder setErrorCount(long errorCount) {
this.errorCount = errorCount;
this.errorCountSet = true;
return this;
}
@Override
public OFBsnGentableClearReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 225 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 128 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearReply.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public OFBsnGentableClearReply.Builder setDeletedCount(long deletedCount) {
this.deletedCount = deletedCount;
this.deletedCountSet = true;
return this;
}
@Override
public long getErrorCount() {
return errorCount;
}
@Override
public OFBsnGentableClearReply.Builder setErrorCount(long errorCount) {
this.errorCount = errorCount;
this.errorCountSet = true;
return this;
}
//
@Override
public OFBsnGentableClearReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 317 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 317 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 28)
throw new OFParseError("Wrong length: Expected=28(28), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x31L
int subtype = bb.readInt();
if(subtype != 0x31)
throw new OFParseError("Wrong subtype: Expected=0x31L(0x31L), got="+subtype);
GenTableId tableId = GenTableId.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
long deletedCount = U32.f(bb.readInt());
long errorCount = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 235 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
@Override
public OFBsnGentableClearRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 235 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableClearRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableClearRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
@Override
public OFBsnGentableClearRequest.Builder setChecksumMask(U128 checksumMask) {
this.checksumMask = checksumMask;
this.checksumMaskSet = true;
return this;
}
//
@Override
public OFBsnGentableClearRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 184 |
return new OFActionBsnSetTunnelDstVer10(
dst
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionBsnSetTunnelDst> {
@Override
public OFActionBsnSetTunnelDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2)
throw new OFParseError("Wrong subtype: Expected=0x2L(0x2L), got="+subtype);
long dst = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 191 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 191 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 191 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 191 |
return new OFBsnInterfaceVer10(
hwAddr,
name,
ipv4Addr,
ipv4Netmask
);
}
}
static class Builder implements OFBsnInterface.Builder {
// OF message fields
private boolean hwAddrSet;
private MacAddress hwAddr;
private boolean nameSet;
private String name;
private boolean ipv4AddrSet;
private IPv4Address ipv4Addr;
private boolean ipv4NetmaskSet;
private IPv4Address ipv4Netmask;
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPortReason reason = this.reasonSet ? this.reason : parentMessage.reason;
if(reason == null)
throw new NullPointerException("Property reason must not be null");
OFPortDesc desc = this.descSet ? this.desc : parentMessage.desc;
if(desc == null)
throw new NullPointerException("Property desc must not be null");
//
return new OFPortStatusVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 111 |
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFControllerRole role = this.roleSet ? this.role : parentMessage.role;
if(role == null)
throw new NullPointerException("Property role must not be null");
U64 generationId = this.generationIdSet ? this.generationId : parentMessage.generationId;
if(generationId == null)
throw new NullPointerException("Property generationId must not be null");
//
return new OFRoleReplyVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 111 |
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFControllerRole role = this.roleSet ? this.role : parentMessage.role;
if(role == null)
throw new NullPointerException("Property role must not be null");
U64 generationId = this.generationIdSet ? this.generationId : parentMessage.generationId;
if(generationId == null)
throw new NullPointerException("Property generationId must not be null");
//
return new OFRoleRequestVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 185 |
return new OFBsnControllerConnectionVer13(
state,
auxiliaryId,
role,
uri
);
}
}
static class Builder implements OFBsnControllerConnection.Builder {
// OF message fields
private boolean stateSet;
private OFBsnControllerConnectionState state;
private boolean auxiliaryIdSet;
private OFAuxId auxiliaryId;
private boolean roleSet;
private OFControllerRole role;
private boolean uriSet;
private String uri;
@Override
public OFBsnControllerConnectionState getState() {
return state;
}
@Override
public OFBsnControllerConnection.Builder setState(OFBsnControllerConnectionState state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFBsnControllerConnection.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnControllerConnection.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public String getUri() {
return uri;
}
@Override
public OFBsnControllerConnection.Builder setUri(String uri) {
this.uri = uri;
this.uriSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 176 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 176 |
return new OFBsnGentableDescStatsEntryVer13(
tableId,
name,
bucketsSize,
maxEntries
);
}
}
static class Builder implements OFBsnGentableDescStatsEntry.Builder {
// OF message fields
private boolean tableIdSet;
private GenTableId tableId;
private boolean nameSet;
private String name;
private boolean bucketsSizeSet;
private long bucketsSize;
private boolean maxEntriesSet;
private long maxEntries;
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnInternalPriorityVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnInternalPriorityVer14.java | 184 |
return new OFInstructionBsnInternalPriorityVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsnInternalPriority> {
@Override
public OFInstructionBsnInternalPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xcL
int subtype = bb.readInt();
if(subtype != 0xc)
throw new OFParseError("Wrong subtype: Expected=0xcL(0xcL), got="+subtype);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.TABLE_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableMod.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public List<OFTableModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFTableMod.Builder setProperties(List<OFTableModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1");
}
@Override
public OFTableMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.TABLE_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableMod.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public List<OFTableModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFTableMod.Builder setProperties(List<OFTableModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.2");
}
@Override
public OFTableMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.TABLE_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableMod.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public List<OFTableModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFTableMod.Builder setProperties(List<OFTableModProp> properties) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.3");
}
@Override
public OFTableMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 375 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 239 |
System.out.println("Actually adding.$$$$");
sw.sendSouth(this, inPort);
}
}
private void prependRewriteActions() {
if (this.getMatch().get(MatchField.IPV4_SRC) != null) {
OFOxmIpv4Src oxmIpv4Src = new OFOxmIpv4SrcVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_SRC).getInt())));
final OVXActionSetField srcAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Src);
this.approvedActions.add(0, srcAct);
}
if (this.getMatch().get(MatchField.IPV4_DST) != null) {
OFOxmIpv4Dst oxmIpv4Dst = new OFOxmIpv4DstVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_DST).getInt())));
final OVXActionSetField dstAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Dst);
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.getFlags().contains(OFFlowModFlagsSerializerVer13.ofWireValue(flagbit))); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long enable = this.enableSet ? this.enable : parentMessage.enable;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnBwEnableSetReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
long vportNo = this.vportNoSet ? this.vportNo : parentMessage.vportNo;
//
return new OFBsnVirtualPortCreateReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 146 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 146 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 146 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 165 |
BuilderWithParent(OFQueueStatsEntryVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 132 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 226 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 226 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 132 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 132 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 132 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsRequest.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
//
@Override
public OFQueueStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 131 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 227 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 227 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 227 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 131 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupAdd.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.ADD;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupAdd.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupAdd.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupAdd.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
//
@Override
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 131 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 227 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 227 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 227 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 131 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.DELETE;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDelete.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDelete.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDelete.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
//
@Override
public OFGroupDelete build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 131 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 227 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 227 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 227 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 131 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 131 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 131 |
}
@Override
public OFType getType() {
return OFType.GROUP_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModify.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFGroupModCommand getCommand() {
return OFGroupModCommand.MODIFY;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupModify.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupModify.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupModify.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
//
@Override
public OFGroupModify build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x25L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long enable = this.enableSet ? this.enable : parentMessage.enable;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnFlowIdleEnableSetReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3bL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long numAux = this.numAuxSet ? this.numAux : parentMessage.numAux;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnSetAuxCxnsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 114 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 114 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 114 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFConfigFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int missSendLen = this.missSendLenSet ? this.missSendLen : parentMessage.missSendLen;
//
return new OFGetConfigReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 114 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 114 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 114 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFConfigFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int missSendLen = this.missSendLenSet ? this.missSendLen : parentMessage.missSendLen;
//
return new OFSetConfigVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFStatsReplyFlagsSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsReplyFlagsSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsReplyFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsReplyFlagsSerializerVer14.java | 34 |
public class OFStatsReplyFlagsSerializerVer11 {
public final static short REPLY_MORE_VAL = (short) 0x1;
public static Set<OFStatsReplyFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFStatsReplyFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFStatsReplyFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFStatsReplyFlags> ofWireValue(short val) {
EnumSet<OFStatsReplyFlags> set = EnumSet.noneOf(OFStatsReplyFlags.class);
if((val & REPLY_MORE_VAL) != 0)
set.add(OFStatsReplyFlags.REPLY_MORE);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFStatsReplyFlags> set) {
short wireValue = 0;
for(OFStatsReplyFlags e: set) {
switch(e) {
case REPLY_MORE:
wireValue |= REPLY_MORE_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFStatsReplyFlags in version 1.1: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 288 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 288 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2fL
int subtype = bb.readInt();
if(subtype != 0x2f)
throw new OFParseError("Wrong subtype: Expected=0x2fL(0x2fL), got="+subtype);
GenTableId tableId = GenTableId.read2Bytes(bb);
List<OFBsnTlv> key = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 38 |
private static final Logger logger = LoggerFactory.getLogger(OFFlowAddVer13.class);
// version: 1.3
final static byte WIRE_VERSION = 4;
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer13.MATCH_WILDCARD_ALL;
private final static List<OFInstruction> DEFAULT_INSTRUCTIONS = ImmutableList.<OFInstruction>of();
// OF message fields
private final long xid;
public U64 cookie;
private final U64 cookieMask;
private final TableId tableId;
private final int idleTimeout;
private final int hardTimeout;
private final int priority;
public OFBufferId bufferId;
private final OFPort outPort;
private final OFGroup outGroup;
public Set<OFFlowModFlags> flags;
public Match match;
private List<OFInstruction> instructions;
//
// Immutable default instance
final static OFFlowAddVer13 DEFAULT = new OFFlowAddVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFStatsRequestFlagsSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsRequestFlagsSerializerVer14.java | 34 |
public class OFStatsRequestFlagsSerializerVer13 {
public final static short REQ_MORE_VAL = (short) 0x1;
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFStatsRequestFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFStatsRequestFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);
if((val & REQ_MORE_VAL) != 0)
set.add(OFStatsRequestFlags.REQ_MORE);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFStatsRequestFlags> set) {
short wireValue = 0;
for(OFStatsRequestFlags e: set) {
switch(e) {
case REQ_MORE:
wireValue |= REQ_MORE_VAL;
break;
default:
throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBundleAddMsgVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleAddMsgVer14.java | 212 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.BUNDLE_ADD_MESSAGE;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBundleAddMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public BundleId getBundleId() {
return bundleId;
}
@Override
public OFBundleAddMsg.Builder setBundleId(BundleId bundleId) {
this.bundleId = bundleId;
this.bundleIdSet = true;
return this;
}
@Override
public Set<OFBundleFlags> getFlags() {
return flags;
}
@Override
public OFBundleAddMsg.Builder setFlags(Set<OFBundleFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMessage getData() {
return data;
}
@Override
public OFBundleAddMsg.Builder setData(OFMessage data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBundleAddMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableModVer14.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModVer14.java | 214 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.TABLE_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableMod.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public List<OFTableModProp> getProperties() {
return properties;
}
@Override
public OFTableMod.Builder setProperties(List<OFTableModProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFTableMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnChecksumVer10.java | 191 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnChecksumVer11.java | 191 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnChecksumVer12.java | 191 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnChecksumVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnChecksumVer14.java | 191 |
return new OFActionBsnChecksumVer10(
checksum
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionBsnChecksum> {
@Override
public OFActionBsnChecksum readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 28)
throw new OFParseError("Wrong length: Expected=28(28), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4)
throw new OFParseError("Wrong subtype: Expected=0x4L(0x4L), got="+subtype);
U128 checksum = U128.read16Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 265 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 265 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 265 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 265 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 265 |
return new OFActionBsnMirrorVer10(
destPort,
vlanTag,
copyStage
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionBsnMirror> {
@Override
public OFActionBsnMirror readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1)
throw new OFParseError("Wrong subtype: Expected=0x1L(0x1L), got="+subtype);
OFPort destPort = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 184 |
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
//
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.reasonSet)
throw new IllegalStateException("Property reason doesn't have default value -- must be set");
if(reason == null)
throw new NullPointerException("Property reason must not be null");
if(!this.descSet)
throw new IllegalStateException("Property desc doesn't have default value -- must be set");
if(desc == null)
throw new NullPointerException("Property desc must not be null");
return new OFPortStatusVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 150 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 280 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 280 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 280 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 150 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 150 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 218 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 213 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 218 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 126 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 213 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 126 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 213 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsRequestVer13.java | 218 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCalientPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFCalientPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x80f958L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFCalientPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFCalientPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 218 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 213 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 218 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 126 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 213 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 126 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 213 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/OFFlowAdd.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowDelete.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowDeleteStrict.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowMod.java | 54 |
| org/projectfloodlight/openflow/protocol/OFFlowModify.java | 55 |
| org/projectfloodlight/openflow/protocol/OFFlowModifyStrict.java | 55 |
OFFlowAdd build();
OFVersion getVersion();
OFType getType();
long getXid();
Builder setXid(long xid);
U64 getCookie();
Builder setCookie(U64 cookie);
U64 getCookieMask() throws UnsupportedOperationException;
Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException;
TableId getTableId() throws UnsupportedOperationException;
Builder setTableId(TableId tableId) throws UnsupportedOperationException;
OFFlowModCommand getCommand();
int getIdleTimeout();
Builder setIdleTimeout(int idleTimeout);
int getHardTimeout();
Builder setHardTimeout(int hardTimeout);
int getPriority();
Builder setPriority(int priority);
OFBufferId getBufferId();
Builder setBufferId(OFBufferId bufferId);
OFPort getOutPort();
Builder setOutPort(OFPort outPort);
OFGroup getOutGroup() throws UnsupportedOperationException;
Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException;
Set<OFFlowModFlags> getFlags();
Builder setFlags(Set<OFFlowModFlags> flags);
Match getMatch();
Builder setMatch(Match match);
List<OFInstruction> getInstructions() throws UnsupportedOperationException;
Builder setInstructions(List<OFInstruction> instructions) throws UnsupportedOperationException;
List<OFAction> getActions() throws UnsupportedOperationException;
Builder setActions(List<OFAction> actions) throws UnsupportedOperationException; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 690 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 689 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 689 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 689 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 689 |
public OFFlowAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Match match = ChannelUtilsVer10.readOFMatch(bb);
U64 cookie = U64.ofRaw(bb.readLong());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 321 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 321 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 321 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 321 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22)
throw new OFParseError("Wrong subtype: Expected=0x22L(0x22L), got="+subtype);
long status = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb);
short slotNum = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 321 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 321 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 321 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 321 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x20L
int subtype = bb.readInt();
if(subtype != 0x20)
throw new OFParseError("Wrong subtype: Expected=0x20L(0x20L), got="+subtype);
long status = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb);
short slotNum = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 146 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 146 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 289 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 289 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 267 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 267 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 156 |
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public OFGroupStatsEntry.Builder setRefCount(long refCount) {
this.refCount = refCount;
this.refCountSet = true;
return this;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFGroupStatsEntry.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFGroupStatsEntry.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public OFGroupStatsEntry.Builder setBucketStats(List<OFBucketCounter> bucketStats) {
this.bucketStats = bucketStats;
this.bucketStatsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 185 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 185 |
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
//
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.roleSet)
throw new IllegalStateException("Property role doesn't have default value -- must be set");
if(role == null)
throw new NullPointerException("Property role must not be null");
U64 generationId = this.generationIdSet ? this.generationId : DEFAULT_GENERATION_ID;
if(generationId == null)
throw new NullPointerException("Property generationId must not be null");
return new OFRoleReplyVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 185 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 185 |
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
//
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.roleSet)
throw new IllegalStateException("Property role doesn't have default value -- must be set");
if(role == null)
throw new NullPointerException("Property role must not be null");
U64 generationId = this.generationIdSet ? this.generationId : DEFAULT_GENERATION_ID;
if(generationId == null)
throw new NullPointerException("Property generationId must not be null");
return new OFRoleRequestVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestCodeSerializerVer13.java | 47 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestCodeSerializerVer14.java | 49 |
public static OFBadRequestCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadRequestCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadRequestCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadRequestCode ofWireValue(short val) {
switch(val) {
case BAD_VERSION_VAL:
return OFBadRequestCode.BAD_VERSION;
case BAD_TYPE_VAL:
return OFBadRequestCode.BAD_TYPE;
case BAD_STAT_VAL:
return OFBadRequestCode.BAD_STAT;
case BAD_EXPERIMENTER_VAL:
return OFBadRequestCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadRequestCode.BAD_EXPERIMENTER_TYPE;
case EPERM_VAL:
return OFBadRequestCode.EPERM;
case BAD_LEN_VAL:
return OFBadRequestCode.BAD_LEN;
case BUFFER_EMPTY_VAL:
return OFBadRequestCode.BUFFER_EMPTY;
case BUFFER_UNKNOWN_VAL:
return OFBadRequestCode.BUFFER_UNKNOWN;
case BAD_TABLE_ID_VAL:
return OFBadRequestCode.BAD_TABLE_ID;
case IS_SLAVE_VAL:
return OFBadRequestCode.IS_SLAVE;
case BAD_PORT_VAL:
return OFBadRequestCode.BAD_PORT;
case BAD_PACKET_VAL:
return OFBadRequestCode.BAD_PACKET;
case MULTIPART_BUFFER_OVERFLOW_VAL:
return OFBadRequestCode.MULTIPART_BUFFER_OVERFLOW; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXPort.java | 75 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXPort.java | 87 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXPort.java | 87 |
+ e.getMessage()), 0);
} catch (final InvalidPortException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid port : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final InvalidDPIDException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid virtual dpid : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
}
return resp;
}
@Override
public JSONRPC2ParamsType getType() {
return JSONRPC2ParamsType.OBJECT;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 706 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 706 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 706 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 732 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 681 |
U64 rxPackets = this.rxPacketsSet ? this.rxPackets : DEFAULT_RX_PACKETS;
if(rxPackets == null)
throw new NullPointerException("Property rxPackets must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : DEFAULT_TX_PACKETS;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 rxBytes = this.rxBytesSet ? this.rxBytes : DEFAULT_RX_BYTES;
if(rxBytes == null)
throw new NullPointerException("Property rxBytes must not be null");
U64 txBytes = this.txBytesSet ? this.txBytes : DEFAULT_TX_BYTES;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 rxDropped = this.rxDroppedSet ? this.rxDropped : DEFAULT_RX_DROPPED;
if(rxDropped == null)
throw new NullPointerException("Property rxDropped must not be null");
U64 txDropped = this.txDroppedSet ? this.txDropped : DEFAULT_TX_DROPPED;
if(txDropped == null)
throw new NullPointerException("Property txDropped must not be null");
U64 rxErrors = this.rxErrorsSet ? this.rxErrors : DEFAULT_RX_ERRORS;
if(rxErrors == null)
throw new NullPointerException("Property rxErrors must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : DEFAULT_TX_ERRORS;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 125 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsReplyFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 887 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 931 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 927 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 926 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 927 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 925 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 901 |
StringBuilder b = new StringBuilder("OFFlowAddVer11(");
b.append("xid=").append(xid);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("cookieMask=").append(cookieMask);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("bufferId=").append(bufferId);
b.append(", ");
b.append("outPort=").append(outPort);
b.append(", ");
b.append("outGroup=").append(outGroup);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("match=").append(match); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 306 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 306 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 65535
short errType = bb.readShort();
if(errType != (short) 0xffff)
throw new OFParseError("Wrong errType: Expected=OFErrorType.EXPERIMENTER(65535), got="+errType);
int subtype = U16.f(bb.readShort());
long experimenter = U32.f(bb.readInt());
OFErrorCauseData data = OFErrorCauseData.read(bb, length - (bb.readerIndex() - start), OFVersion.OF_12); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 283 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3dL
int subtype = bb.readInt();
if(subtype != 0x3d)
throw new OFParseError("Wrong subtype: Expected=0x3dL(0x3dL), got="+subtype);
// pad: 1 bytes
bb.skipBytes(1);
TableId tableId = TableId.readByte(bb);
// pad: 2 bytes
bb.skipBytes(2);
long bucketsSize = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 331 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 331 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 52)
throw new OFParseError("Wrong length: Expected=52(52), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x30L
int subtype = bb.readInt();
if(subtype != 0x30)
throw new OFParseError("Wrong subtype: Expected=0x30L(0x30L), got="+subtype);
GenTableId tableId = GenTableId.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
U128 checksum = U128.read16Bytes(bb);
U128 checksumMask = U128.read16Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 542 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 542 |
}
//
@Override
public OFBsnLacpStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : DEFAULT_ACTOR_SYS_PRIORITY;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : DEFAULT_ACTOR_SYS_MAC;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : DEFAULT_ACTOR_PORT_PRIORITY;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : DEFAULT_ACTOR_PORT_NUM;
int actorKey = this.actorKeySet ? this.actorKey : DEFAULT_ACTOR_KEY;
short convergenceStatus = this.convergenceStatusSet ? this.convergenceStatus : DEFAULT_CONVERGENCE_STATUS;
int partnerSysPriority = this.partnerSysPrioritySet ? this.partnerSysPriority : DEFAULT_PARTNER_SYS_PRIORITY;
MacAddress partnerSysMac = this.partnerSysMacSet ? this.partnerSysMac : DEFAULT_PARTNER_SYS_MAC;
if(partnerSysMac == null)
throw new NullPointerException("Property partnerSysMac must not be null");
int partnerPortPriority = this.partnerPortPrioritySet ? this.partnerPortPriority : DEFAULT_PARTNER_PORT_PRIORITY;
int partnerPortNum = this.partnerPortNumSet ? this.partnerPortNum : DEFAULT_PARTNER_PORT_NUM;
int partnerKey = this.partnerKeySet ? this.partnerKey : DEFAULT_PARTNER_KEY;
return new OFBsnLacpStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 122 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 217 |
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public OFMeterFeatures.Builder setMaxMeter(long maxMeter) {
this.maxMeter = maxMeter;
this.maxMeterSet = true;
return this;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public OFMeterFeatures.Builder setBandTypes(long bandTypes) {
this.bandTypes = bandTypes;
this.bandTypesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFMeterFeatures.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public OFMeterFeatures.Builder setMaxBands(short maxBands) {
this.maxBands = maxBands;
this.maxBandsSet = true;
return this;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFMeterFeatures.Builder setMaxColor(short maxColor) {
this.maxColor = maxColor;
this.maxColorSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 217 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 122 |
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public OFMeterFeatures.Builder setMaxMeter(long maxMeter) {
this.maxMeter = maxMeter;
this.maxMeterSet = true;
return this;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public OFMeterFeatures.Builder setBandTypes(long bandTypes) {
this.bandTypes = bandTypes;
this.bandTypesSet = true;
return this;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public OFMeterFeatures.Builder setCapabilities(long capabilities) {
this.capabilities = capabilities;
this.capabilitiesSet = true;
return this;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public OFMeterFeatures.Builder setMaxBands(short maxBands) {
this.maxBands = maxBands;
this.maxBandsSet = true;
return this;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFMeterFeatures.Builder setMaxColor(short maxColor) {
this.maxColor = maxColor;
this.maxColorSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long enable = this.enableSet ? this.enable : DEFAULT_ENABLE;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnBwEnableSetReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 242 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 362 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 362 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellCommandVer10.java | 279 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellOutputVer10.java | 241 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 236 |
public OFBsnGetInterfacesReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
long vportNo = this.vportNoSet ? this.vportNo : DEFAULT_VPORT_NO;
return new OFBsnVirtualPortCreateReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 427 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 427 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 427 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 427 |
OFQueueStatsRequestVer10 other = (OFQueueStatsRequestVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( queueId != other.queueId)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * (int) (queueId ^ (queueId >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 242 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 362 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 362 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 236 |
public OFBsnGetInterfacesReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 242 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 362 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 362 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 236 |
public OFBsnGetInterfacesReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFErrorTypeSerializerVer12.java | 44 |
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 50 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFErrorType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFErrorType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFErrorType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFErrorType ofWireValue(short val) {
switch(val) {
case HELLO_FAILED_VAL:
return OFErrorType.HELLO_FAILED;
case BAD_REQUEST_VAL:
return OFErrorType.BAD_REQUEST;
case BAD_ACTION_VAL:
return OFErrorType.BAD_ACTION;
case BAD_INSTRUCTION_VAL:
return OFErrorType.BAD_INSTRUCTION;
case BAD_MATCH_VAL:
return OFErrorType.BAD_MATCH;
case FLOW_MOD_FAILED_VAL:
return OFErrorType.FLOW_MOD_FAILED;
case GROUP_MOD_FAILED_VAL:
return OFErrorType.GROUP_MOD_FAILED;
case PORT_MOD_FAILED_VAL:
return OFErrorType.PORT_MOD_FAILED;
case TABLE_MOD_FAILED_VAL:
return OFErrorType.TABLE_MOD_FAILED;
case QUEUE_OP_FAILED_VAL:
return OFErrorType.QUEUE_OP_FAILED;
case SWITCH_CONFIG_FAILED_VAL:
return OFErrorType.SWITCH_CONFIG_FAILED;
case ROLE_REQUEST_FAILED_VAL:
return OFErrorType.ROLE_REQUEST_FAILED;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 220 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 220 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 220 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 128 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFExperimenterErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.EXPERIMENTER;
}
@Override
public int getSubtype() {
return subtype;
}
@Override
public OFExperimenterErrorMsg.Builder setSubtype(int subtype) {
this.subtype = subtype;
this.subtypeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFExperimenterErrorMsg.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFExperimenterErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFExperimenterErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 242 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 368 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 373 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 242 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 281 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 241 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 241 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 241 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 236 |
public OFBsnControllerConnectionsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x39L
int subtype = bb.readInt();
if(subtype != 0x39) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x25L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnFlowIdleEnableSetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long enable = this.enableSet ? this.enable : DEFAULT_ENABLE;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnFlowIdleEnableSetReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 368 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 368 |
OFBsnGentableDescStatsEntryVer13 other = (OFBsnGentableDescStatsEntryVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if( bucketsSize != other.bucketsSize)
return false;
if( maxEntries != other.maxEntries)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * (int) (bucketsSize ^ (bucketsSize >>> 32));
result = prime * (int) (maxEntries ^ (maxEntries >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 458 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 458 |
OFBsnLuaUploadVer13 other = (OFBsnLuaUploadVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (filename == null) {
if (other.filename != null)
return false;
} else if (!filename.equals(other.filename))
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((filename == null) ? 0 : filename.hashCode());
result = prime * result + Arrays.hashCode(data);
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3bL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnSetAuxCxnsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long numAux = this.numAuxSet ? this.numAux : DEFAULT_NUM_AUX;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnSetAuxCxnsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 228 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 228 |
return new OFMeterBandDscpRemarkVer13(
rate,
burstSize,
precLevel
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMeterBandDscpRemark> {
@Override
public OFMeterBandDscpRemark readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=0x2(0x2), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long rate = U32.f(bb.readInt());
long burstSize = U32.f(bb.readInt());
short precLevel = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 242 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 368 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 373 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 242 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 281 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 241 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 241 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 241 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 236 |
public OFBsnControllerConnectionsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x39L
int subtype = bb.readInt();
if(subtype != 0x39) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXFlowStatsRequestVer10.java | 99 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXFlowStatsRequestVer13.java | 94 |
.setActions(origFM.getActions())
.build();
replies.add(entry);
}
}
}
}
}
final Set<OFStatsReplyFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsReplyFlags>of();
OVXFlowStatsReply reply=OVXFactoryInst.myOVXFactory.buildOVXFlowStatsReply(this.getXid(), DEFAULT_FLAGS, replies);
sw.sendMsg(reply, sw);
}
}
private List<PhysicalSwitch> getPhysicalSwitches(OVXSwitch sw) {
if (sw instanceof OVXSingleSwitch) {
try {
return sw.getMap().getPhysicalSwitches(sw);
} catch (SwitchMappingException e) {
log.debug("OVXSwitch {} does not map to any physical switches",
sw.getSwitchName());
return new LinkedList<>();
}
}
LinkedList<PhysicalSwitch> sws = new LinkedList<PhysicalSwitch>();
for (OVXPort p : sw.getPorts().values()) {
if (!sws.contains(p.getPhysicalPort().getParentSwitch())) {
sws.add(p.getPhysicalPort().getParentSwitch());
}
}
return sws;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 184 |
return new OFActionBsnMirrorVer10(
destPort,
vlanTag,
copyStage
);
}
}
static class Builder implements OFActionBsnMirror.Builder {
// OF message fields
private boolean destPortSet;
private OFPort destPort;
private boolean vlanTagSet;
private long vlanTag;
private boolean copyStageSet;
private short copyStage;
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 186 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 186 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 186 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 186 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 186 |
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
//
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFConfigFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int missSendLen = this.missSendLenSet ? this.missSendLen : DEFAULT_MISS_SEND_LEN;
return new OFGetConfigReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 186 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 186 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 186 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 186 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 186 |
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
//
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFConfigFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
int missSendLen = this.missSendLenSet ? this.missSendLen : DEFAULT_MISS_SEND_LEN;
return new OFSetConfigVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 453 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 453 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 453 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 453 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 453 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 453 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 453 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 453 |
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
OFGroup outGroup = this.outGroupSet ? this.outGroup : DEFAULT_OUT_GROUP;
if(outGroup == null)
throw new NullPointerException("Property outGroup must not be null");
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 cookieMask = this.cookieMaskSet ? this.cookieMask : DEFAULT_COOKIE_MASK;
if(cookieMask == null)
throw new NullPointerException("Property cookieMask must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
return new OFAggregateStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.DELETE;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY_STRICT;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 125 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.MODIFY;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 398 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 398 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 398 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 16
byte type = bb.readByte();
if(type != (byte) 0x10)
throw new OFParseError("Wrong type: Expected=OFType.PORT_MOD(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 40)
throw new OFParseError("Wrong length: Expected=40(40), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
MacAddress hwAddr = MacAddress.read6Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
long config = U32.f(bb.readInt());
long mask = U32.f(bb.readInt());
long advertise = U32.f(bb.readInt());
// pad: 4 bytes
bb.skipBytes(4); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 627 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 627 |
StringBuilder b = new StringBuilder("OFPacketInVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("bufferId=").append(bufferId);
b.append(", ");
b.append("totalLen=").append(totalLen);
b.append(", ");
b.append("reason=").append(reason);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("data=").append(Arrays.toString(data));
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatusVer14.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatusVer14.java | 206 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.TABLE_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getRole() {
return role;
}
@Override
public OFTableStatus.Builder setRole(long role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public OFTableReason getReason() {
return reason;
}
@Override
public OFTableStatus.Builder setReason(OFTableReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFTableDesc getTable() {
return table;
}
@Override
public OFTableStatus.Builder setTable(OFTableDesc table) {
this.table = table;
this.tableSet = true;
return this;
}
@Override
public OFTableStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/network/LoopNetwork.java | 79 |
| net/onrc/openvirtex/elements/network/LoopNetwork.java | 184 |
DPIDandPortPair myPair = addPorts.get(i);
System.out.println(myNet.dpidMap.toString());
PhysicalSwitch sSwitch = myNet.getSwitch(myPair.getSrc().getDpid());
if (sSwitch == null) {
System.out.println("sSwitch is null!");
continue;
}
PhysicalPort sPort = sSwitch.getPort(myPair.getSrc().getPort());
if (sPort == null) {
System.out.println("sPort is null!");
continue;
}
PhysicalSwitch dSwitch = myNet.getSwitch(myPair.getDst().getDpid());
if (sSwitch == null) {
System.out.println("dSwitch is null!");
continue;
}
PhysicalPort dPort = dSwitch.getPort(myPair.getDst().getPort());
if (dPort == null ) {
System.out.println("dPort is null!");
continue;
}
try {
myNet.createLink(sPort,dPort);
myNet.createLink(dPort,sPort);
} catch (SwitchMappingException e) {
e.printStackTrace();
}
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 338 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 338 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 338 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 338 |
OFGroupDescStatsEntryVer11 other = (OFGroupDescStatsEntryVer11) obj;
if (groupType == null) {
if (other.groupType != null)
return false;
} else if (!groupType.equals(other.groupType))
return false;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
if (buckets == null) {
if (other.buckets != null)
return false;
} else if (!buckets.equals(other.buckets))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((groupType == null) ? 0 : groupType.hashCode());
result = prime * result + ((group == null) ? 0 : group.hashCode());
result = prime * result + ((buckets == null) ? 0 : buckets.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 315 |
OFBsnDebugCounterDescStatsEntryVer13 other = (OFBsnDebugCounterDescStatsEntryVer13) obj;
if (counterId == null) {
if (other.counterId != null)
return false;
} else if (!counterId.equals(other.counterId))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (description == null) {
if (other.description != null)
return false;
} else if (!description.equals(other.description))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((counterId == null) ? 0 : counterId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((description == null) ? 0 : description.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setEntries(List<OFBsnDebugCounterDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterDescStatsReply.Builder setEntries(List<OFBsnDebugCounterDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnDebugCounterDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setEntries(List<OFBsnDebugCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnDebugCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnDebugCounterStatsReply.Builder setEntries(List<OFBsnDebugCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnDebugCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setEntries(List<OFBsnFlowChecksumBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnFlowChecksumBucketStatsReply.Builder setEntries(List<OFBsnFlowChecksumBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnFlowChecksumBucketStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGenericStatsReply.Builder setEntries(List<OFBsnGenericStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGenericStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGenericStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGenericStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGenericStatsReply.Builder setEntries(List<OFBsnGenericStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGenericStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setEntries(List<OFBsnGentableBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableBucketStatsReply.Builder setEntries(List<OFBsnGentableBucketStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableBucketStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableDescStatsReply.Builder setEntries(List<OFBsnGentableDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableDescStatsReply.Builder setEntries(List<OFBsnGentableDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 347 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 347 |
OFBsnGentableEntryDescStatsEntryVer13 other = (OFBsnGentableEntryDescStatsEntryVer13) obj;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
if (value == null) {
if (other.value != null)
return false;
} else if (!value.equals(other.value))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((checksum == null) ? 0 : checksum.hashCode());
result = prime * result + ((key == null) ? 0 : key.hashCode());
result = prime * result + ((value == null) ? 0 : value.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setEntries(List<OFBsnGentableEntryDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryDescStatsReply.Builder setEntries(List<OFBsnGentableEntryDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setEntries(List<OFBsnGentableEntryStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableEntryStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableEntryStatsReply.Builder setEntries(List<OFBsnGentableEntryStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableEntryStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableStatsReply.Builder setEntries(List<OFBsnGentableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnGentableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnGentableStatsReply.Builder setEntries(List<OFBsnGentableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnGentableStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnLacpStatsReply.Builder setEntries(List<OFBsnLacpStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnLacpStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnLacpStatsReply.Builder setEntries(List<OFBsnLacpStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnLacpStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnPortCounterStatsReply.Builder setEntries(List<OFBsnPortCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnPortCounterStatsReply.Builder setEntries(List<OFBsnPortCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnPortCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setEntries(List<OFBsnSwitchPipelineStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnSwitchPipelineStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnSwitchPipelineStatsReply.Builder setEntries(List<OFBsnSwitchPipelineStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnSwitchPipelineStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setEntries(List<OFBsnTableChecksumStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnTableChecksumStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnTableChecksumStatsReply.Builder setEntries(List<OFBsnTableChecksumStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnTableChecksumStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setEntries(List<OFBsnVlanCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVlanCounterStatsReply.Builder setEntries(List<OFBsnVlanCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnVlanCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 223 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setEntries(List<OFBsnVrfCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 223 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 134 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
@Override
public OFBsnVrfCounterStatsReply.Builder setEntries(List<OFBsnVrfCounterStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFBsnVrfCounterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/network/LoopNetwork.java | 79 |
| net/onrc/openvirtex/elements/network/LoopNetwork.java | 151 |
| net/onrc/openvirtex/elements/network/LoopNetwork.java | 184 |
DPIDandPortPair myPair = addPorts.get(i);
System.out.println(myNet.dpidMap.toString());
PhysicalSwitch sSwitch = myNet.getSwitch(myPair.getSrc().getDpid());
if (sSwitch == null) {
System.out.println("sSwitch is null!");
continue;
}
PhysicalPort sPort = sSwitch.getPort(myPair.getSrc().getPort());
if (sPort == null) {
System.out.println("sPort is null!");
continue;
}
PhysicalSwitch dSwitch = myNet.getSwitch(myPair.getDst().getDpid());
if (sSwitch == null) {
System.out.println("dSwitch is null!");
continue;
}
PhysicalPort dPort = dSwitch.getPort(myPair.getDst().getPort());
if (dPort == null ) {
System.out.println("dPort is null!");
continue;
}
try {
myNet.createLink(sPort,dPort);
myNet.createLink(dPort,sPort);
} catch (SwitchMappingException e) {
e.printStackTrace();
}
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/packet/AbstractSegment.java | 108 |
| net/onrc/openvirtex/packet/TCP.java | 228 |
if (this.checksum == 0) {
bb.rewind();
int accumulation = 0;
// compute pseudo header mac
if (this.parent != null && this.parent instanceof IPv4) {
final IPv4 ipv4 = (IPv4) this.parent;
accumulation += (ipv4.getSourceAddress() >> 16 & 0xffff)
+ (ipv4.getSourceAddress() & 0xffff);
accumulation += (ipv4.getDestinationAddress() >> 16 & 0xffff)
+ (ipv4.getDestinationAddress() & 0xffff);
accumulation += ipv4.getProtocol() & 0xff;
accumulation += length & 0xffff;
}
for (int i = 0; i < length / 2; ++i) {
accumulation += 0xffff & bb.getShort();
}
// pad to an even number of shorts
if (length % 2 > 0) {
accumulation += (bb.get() & 0xff) << 8;
}
accumulation = (accumulation >> 16 & 0xffff)
+ (accumulation & 0xffff);
this.checksum = (short) (~accumulation & 0xffff);
bb.putShort(6, this.checksum); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 150 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 150 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 150 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 302 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 319 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 280 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 280 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 280 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 169 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFQueueStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueStatsEntry.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public OFQueueStatsEntry.Builder setTxBytes(U64 txBytes) {
this.txBytes = txBytes;
this.txBytesSet = true;
return this;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public OFQueueStatsEntry.Builder setTxPackets(U64 txPackets) {
this.txPackets = txPackets;
this.txPacketsSet = true;
return this;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public OFQueueStatsEntry.Builder setTxErrors(U64 txErrors) {
this.txErrors = txErrors;
this.txErrorsSet = true;
return this;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 273 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 273 |
return new OFBucketVer11(
weight,
watchPort,
watchGroup,
actions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBucket> {
@Override
public OFBucket readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int weight = U16.f(bb.readShort());
OFPort watchPort = OFPort.read4Bytes(bb);
OFGroup watchGroup = OFGroup.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModCommandSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModCommandSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModCommandSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModCommandSerializerVer14.java | 30 |
public class OFFlowModCommandSerializerVer11 {
public final static byte ADD_VAL = (byte) 0x0;
public final static byte MODIFY_VAL = (byte) 0x1;
public final static byte MODIFY_STRICT_VAL = (byte) 0x2;
public final static byte DELETE_VAL = (byte) 0x3;
public final static byte DELETE_STRICT_VAL = (byte) 0x4;
public static OFFlowModCommand readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowModCommand e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFFlowModCommand e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFFlowModCommand ofWireValue(byte val) {
switch(val) {
case ADD_VAL:
return OFFlowModCommand.ADD;
case MODIFY_VAL:
return OFFlowModCommand.MODIFY;
case MODIFY_STRICT_VAL:
return OFFlowModCommand.MODIFY_STRICT;
case DELETE_VAL:
return OFFlowModCommand.DELETE;
case DELETE_STRICT_VAL:
return OFFlowModCommand.DELETE_STRICT;
default:
throw new IllegalArgumentException("Illegal wire value for type OFFlowModCommand in version 1.1: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedCodeSerializerVer14.java | 30 |
public class OFPortModFailedCodeSerializerVer12 {
public final static short BAD_PORT_VAL = (short) 0x0;
public final static short BAD_HW_ADDR_VAL = (short) 0x1;
public final static short BAD_CONFIG_VAL = (short) 0x2;
public final static short BAD_ADVERTISE_VAL = (short) 0x3;
public final static short EPERM_VAL = (short) 0x4;
public static OFPortModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPortModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFPortModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFPortModFailedCode ofWireValue(short val) {
switch(val) {
case BAD_PORT_VAL:
return OFPortModFailedCode.BAD_PORT;
case BAD_HW_ADDR_VAL:
return OFPortModFailedCode.BAD_HW_ADDR;
case BAD_CONFIG_VAL:
return OFPortModFailedCode.BAD_CONFIG;
case BAD_ADVERTISE_VAL:
return OFPortModFailedCode.BAD_ADVERTISE;
case EPERM_VAL:
return OFPortModFailedCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFPortModFailedCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 222 |
@Override
public int getType() {
return 0x0;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public OFPortStatsPropEthernet.Builder setRxFrameErr(U64 rxFrameErr) {
this.rxFrameErr = rxFrameErr;
this.rxFrameErrSet = true;
return this;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public OFPortStatsPropEthernet.Builder setRxOverErr(U64 rxOverErr) {
this.rxOverErr = rxOverErr;
this.rxOverErrSet = true;
return this;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public OFPortStatsPropEthernet.Builder setRxCrcErr(U64 rxCrcErr) {
this.rxCrcErr = rxCrcErr;
this.rxCrcErrSet = true;
return this;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public OFPortStatsPropEthernet.Builder setCollisions(U64 collisions) {
this.collisions = collisions;
this.collisionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPortStatsPropEthernet build() {
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : parentMessage.rxFrameErr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellStatusVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 233 |
public OFBsnBwClearDataReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataRequestVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetRequestVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesRequestVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableRequestVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetRequestVer10.java | 195 |
public OFBsnBwClearDataRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskReplyVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskRequestVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableReplyVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetReplyVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetIpMaskVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableReplyVer10.java | 309 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableRequestVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 271 |
public OFBsnBwEnableSetReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x17L
int subtype = bb.readInt();
if(subtype != 0x17) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 247 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 247 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 247 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 247 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 247 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa)
throw new OFParseError("Wrong subtype: Expected=0xaL(0xaL), got="+subtype);
List<OFBsnInterface> interfaces = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnInterfaceVer10.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 316 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 316 |
public OFBsnPduRxReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 23)
throw new OFParseError("Wrong length: Expected=23(23), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleReplyVer10.java | 236 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleRequestVer10.java | 236 |
public OFNiciraControllerRoleReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
// fixed value property subtype == 0xbL
int subtype = bb.readInt();
if(subtype != 0xb) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 670 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 670 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 675 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 675 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 675 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 701 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 675 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 675 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 675 |
} else if (!outGroup.equals(other.outGroup))
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (cookieMask == null) {
if (other.cookieMask != null)
return false;
} else if (!cookieMask.equals(other.cookieMask))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((outPort == null) ? 0 : outPort.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionCodeSerializerVer11.java | 46 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionCodeSerializerVer12.java | 49 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionCodeSerializerVer13.java | 49 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionCodeSerializerVer14.java | 49 |
public static OFBadActionCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadActionCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadActionCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadActionCode ofWireValue(short val) {
switch(val) {
case BAD_TYPE_VAL:
return OFBadActionCode.BAD_TYPE;
case BAD_LEN_VAL:
return OFBadActionCode.BAD_LEN;
case BAD_EXPERIMENTER_VAL:
return OFBadActionCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadActionCode.BAD_EXPERIMENTER_TYPE;
case BAD_OUT_PORT_VAL:
return OFBadActionCode.BAD_OUT_PORT;
case BAD_ARGUMENT_VAL:
return OFBadActionCode.BAD_ARGUMENT;
case EPERM_VAL:
return OFBadActionCode.EPERM;
case TOO_MANY_VAL:
return OFBadActionCode.TOO_MANY;
case BAD_QUEUE_VAL:
return OFBadActionCode.BAD_QUEUE;
case BAD_OUT_GROUP_VAL:
return OFBadActionCode.BAD_OUT_GROUP;
case MATCH_INCONSISTENT_VAL:
return OFBadActionCode.MATCH_INCONSISTENT;
case UNSUPPORTED_ORDER_VAL:
return OFBadActionCode.UNSUPPORTED_ORDER;
case BAD_TAG_VAL:
return OFBadActionCode.BAD_TAG; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 233 |
public OFBsnBwClearDataReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataRequestVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetRequestVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesRequestVer11.java | 195 |
public OFBsnBwClearDataRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 271 |
public OFBsnBwEnableSetReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x17L
int subtype = bb.readInt();
if(subtype != 0x17) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 316 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 316 |
public OFBsnPduRxReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestCodeSerializerVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestCodeSerializerVer13.java | 47 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestCodeSerializerVer14.java | 49 |
public static OFBadRequestCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadRequestCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadRequestCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadRequestCode ofWireValue(short val) {
switch(val) {
case BAD_VERSION_VAL:
return OFBadRequestCode.BAD_VERSION;
case BAD_TYPE_VAL:
return OFBadRequestCode.BAD_TYPE;
case BAD_STAT_VAL:
return OFBadRequestCode.BAD_STAT;
case BAD_EXPERIMENTER_VAL:
return OFBadRequestCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadRequestCode.BAD_EXPERIMENTER_TYPE;
case EPERM_VAL:
return OFBadRequestCode.EPERM;
case BAD_LEN_VAL:
return OFBadRequestCode.BAD_LEN;
case BUFFER_EMPTY_VAL:
return OFBadRequestCode.BUFFER_EMPTY;
case BUFFER_UNKNOWN_VAL:
return OFBadRequestCode.BUFFER_UNKNOWN;
case BAD_TABLE_ID_VAL:
return OFBadRequestCode.BAD_TABLE_ID;
case IS_SLAVE_VAL:
return OFBadRequestCode.IS_SLAVE;
case BAD_PORT_VAL:
return OFBadRequestCode.BAD_PORT;
case BAD_PACKET_VAL:
return OFBadRequestCode.BAD_PACKET; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 233 |
public OFBsnBwClearDataReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataRequestVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetRequestVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesRequestVer12.java | 195 |
public OFBsnBwClearDataRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 271 |
public OFBsnBwEnableSetReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x17L
int subtype = bb.readInt();
if(subtype != 0x17) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 316 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 316 |
public OFBsnPduRxReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 95 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 95 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 95 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getTypes() {
return types;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public long getMaxGroupsAll() {
return maxGroupsAll;
}
@Override
public long getMaxGroupsSelect() {
return maxGroupsSelect;
}
@Override
public long getMaxGroupsIndirect() {
return maxGroupsIndirect;
}
@Override
public long getMaxGroupsFf() {
return maxGroupsFf;
}
@Override
public long getActionsAll() {
return actionsAll;
}
@Override
public long getActionsSelect() {
return actionsSelect;
}
@Override
public long getActionsIndirect() {
return actionsIndirect;
}
@Override
public long getActionsFf() {
return actionsFf;
}
public OFGroupFeaturesStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFGroupFeaturesStatsReply.Builder {
final OFGroupFeaturesStatsReplyVer12 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 240 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 271 |
public OFBsnArpIdle readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3cL
int subtype = bb.readInt();
if(subtype != 0x3c) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 283 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3cL
int subtype = bb.readInt();
if(subtype != 0x3c)
throw new OFParseError("Wrong subtype: Expected=0x3cL(0x3cL), got="+subtype);
int vlanVid = U16.f(bb.readShort());
// pad: 2 bytes
bb.skipBytes(2);
IPv4Address ipv4Addr = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 233 |
public OFBsnBwClearDataReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataRequestVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetRequestVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsRequestVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetRequestVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesRequestVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineRequestVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeRequestVer13.java | 195 |
public OFBsnBwClearDataRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 247 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 247 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x39L
int subtype = bb.readInt();
if(subtype != 0x39)
throw new OFParseError("Wrong subtype: Expected=0x39L(0x39L), got="+subtype);
List<OFBsnControllerConnection> connections = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnControllerConnectionVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 326 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 672 |
public OFBsnGentableClearRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 52)
throw new OFParseError("Wrong length: Expected=52(52), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x30L
int subtype = bb.readInt();
if(subtype != 0x30) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 279 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 279 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x32L
int subtype = bb.readInt();
if(subtype != 0x32)
throw new OFParseError("Wrong subtype: Expected=0x32L(0x32L), got="+subtype);
GenTableId tableId = GenTableId.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
long bucketsSize = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 240 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 240 |
public OFBsnGetSwitchPipelineReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 272)
throw new OFParseError("Wrong length: Expected=272(272), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x34L
int subtype = bb.readInt();
if(subtype != 0x34) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 316 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 316 |
public OFBsnPduRxReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnRoleStatusVer13.java | 326 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 392 |
public OFBsnRoleStatus readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x37L
int subtype = bb.readInt();
if(subtype != 0x37) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 274 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 240 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 271 |
public OFBsnArpIdle readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3cL
int subtype = bb.readInt();
if(subtype != 0x3c) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 233 |
public OFBsnBwClearDataReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataRequestVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetRequestVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsRequestVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetRequestVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesRequestVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineRequestVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeRequestVer14.java | 195 |
public OFBsnBwClearDataRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 326 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 672 |
public OFBsnGentableClearRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 52)
throw new OFParseError("Wrong length: Expected=52(52), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x30L
int subtype = bb.readInt();
if(subtype != 0x30) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 240 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 240 |
public OFBsnGetSwitchPipelineReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 272)
throw new OFParseError("Wrong length: Expected=272(272), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x34L
int subtype = bb.readInt();
if(subtype != 0x34) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 316 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 316 |
public OFBsnPduRxReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 246 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x42L
int subtype = bb.readInt();
if(subtype != 0x42)
throw new OFParseError("Wrong subtype: Expected=0x42L(0x42L), got="+subtype);
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 246 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x41L
int subtype = bb.readInt();
if(subtype != 0x41)
throw new OFParseError("Wrong subtype: Expected=0x41L(0x41L), got="+subtype);
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 246 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x43L
int subtype = bb.readInt();
if(subtype != 0x43)
throw new OFParseError("Wrong subtype: Expected=0x43L(0x43L), got="+subtype);
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 260 |
throw new UnsupportedOperationException("Property actions not supported in version 1.3");
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
DatapathId datapathId = this.datapathIdSet ? this.datapathId : parentMessage.datapathId;
if(datapathId == null)
throw new NullPointerException("Property datapathId must not be null");
long nBuffers = this.nBuffersSet ? this.nBuffers : parentMessage.nBuffers;
short nTables = this.nTablesSet ? this.nTables : parentMessage.nTables;
OFAuxId auxiliaryId = this.auxiliaryIdSet ? this.auxiliaryId : parentMessage.auxiliaryId;
if(auxiliaryId == null)
throw new NullPointerException("Property auxiliaryId must not be null");
Set<OFCapabilities> capabilities = this.capabilitiesSet ? this.capabilities : parentMessage.capabilities;
if(capabilities == null)
throw new NullPointerException("Property capabilities must not be null");
long reserved = this.reservedSet ? this.reserved : parentMessage.reserved;
//
return new OFFeaturesReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 163 |
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 303 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 187 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 187 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 187 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 351 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAggregateStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFAggregateStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFAggregateStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFAggregateStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x17L
int subtype = bb.readInt();
if(subtype != 0x17)
throw new OFParseError("Wrong subtype: Expected=0x17L(0x17L), got="+subtype);
long enable = U32.f(bb.readInt());
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x10L
int subtype = bb.readInt();
if(subtype != 0x10)
throw new OFParseError("Wrong subtype: Expected=0x10L(0x10L), got="+subtype);
long status = U32.f(bb.readInt());
long vportNo = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 163 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 303 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 187 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 187 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 187 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 187 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 351 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFFlowStatsRequest.Builder setOutPort(OFPort outPort) {
this.outPort = outPort;
this.outPortSet = true;
return this;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 620 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 620 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 625 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 625 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 625 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 657 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 625 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 625 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 625 |
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer11(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("outPort=").append(outPort);
b.append(", ");
b.append("outGroup=").append(outGroup);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("cookieMask=").append(cookieMask);
b.append(", ");
b.append("match=").append(match);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x25L
int subtype = bb.readInt();
if(subtype != 0x25)
throw new OFParseError("Wrong subtype: Expected=0x25L(0x25L), got="+subtype);
long enable = U32.f(bb.readInt());
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3bL
int subtype = bb.readInt();
if(subtype != 0x3b)
throw new OFParseError("Wrong subtype: Expected=0x3bL(0x3bL), got="+subtype);
long numAux = U32.f(bb.readInt());
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 597 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 597 |
StringBuilder b = new StringBuilder("OFBsnSetLacpRequestVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("enabled=").append(enabled);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("actorSysPriority=").append(actorSysPriority);
b.append(", ");
b.append("actorSysMac=").append(actorSysMac);
b.append(", ");
b.append("actorPortPriority=").append(actorPortPriority);
b.append(", ");
b.append("actorPortNum=").append(actorPortNum);
b.append(", ");
b.append("actorKey=").append(actorKey);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 200 |
return new OFBsnTlvReferenceVer13(
tableId,
key
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvReference> {
@Override
public OFBsnTlvReference readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3b
short type = bb.readShort();
if(type != (short) 0x3b)
throw new OFParseError("Wrong type: Expected=0x3b(0x3b), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int tableId = U16.f(bb.readShort());
List<OFBsnTlv> key = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 228 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 228 |
return new OFMeterBandExperimenterVer13(
rate,
burstSize,
experimenter
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMeterBandExperimenter> {
@Override
public OFMeterBandExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xffff
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=0xffff(0xffff), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long rate = U32.f(bb.readInt());
long burstSize = U32.f(bb.readInt());
long experimenter = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionCopyTtlInVer11.java | 66 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionCopyTtlInVer12.java | 66 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionCopyTtlInVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionCopyTtlInVer14.java | 66 |
throw new UnsupportedOperationException("OFActionCopyTtlInVer11 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionCopyTtlIn> {
@Override
public OFActionCopyTtlIn readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 12
short type = bb.readShort();
if(type != (short) 0xc)
throw new OFParseError("Wrong type: Expected=OFActionType.COPY_TTL_IN(12), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionCopyTtlInVer11Funnel FUNNEL = new OFActionCopyTtlInVer11Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionCopyTtlOutVer11.java | 66 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionCopyTtlOutVer12.java | 66 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionCopyTtlOutVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionCopyTtlOutVer14.java | 66 |
throw new UnsupportedOperationException("OFActionCopyTtlOutVer11 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionCopyTtlOut> {
@Override
public OFActionCopyTtlOut readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 11
short type = bb.readShort();
if(type != (short) 0xb)
throw new OFParseError("Wrong type: Expected=OFActionType.COPY_TTL_OUT(11), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionCopyTtlOutVer11Funnel FUNNEL = new OFActionCopyTtlOutVer11Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionDecMplsTtlVer11.java | 66 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionDecMplsTtlVer12.java | 66 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionDecMplsTtlVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionDecMplsTtlVer14.java | 66 |
throw new UnsupportedOperationException("OFActionDecMplsTtlVer11 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionDecMplsTtl> {
@Override
public OFActionDecMplsTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 16
short type = bb.readShort();
if(type != (short) 0x10)
throw new OFParseError("Wrong type: Expected=OFActionType.DEC_MPLS_TTL(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionDecMplsTtlVer11Funnel FUNNEL = new OFActionDecMplsTtlVer11Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionDecNwTtlVer11.java | 66 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionDecNwTtlVer12.java | 66 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionDecNwTtlVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionDecNwTtlVer14.java | 66 |
throw new UnsupportedOperationException("OFActionDecNwTtlVer11 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionDecNwTtl> {
@Override
public OFActionDecNwTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 24
short type = bb.readShort();
if(type != (short) 0x18)
throw new OFParseError("Wrong type: Expected=OFActionType.DEC_NW_TTL(24), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionDecNwTtlVer11Funnel FUNNEL = new OFActionDecNwTtlVer11Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionPopVlanVer11.java | 66 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionPopVlanVer12.java | 66 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionPopVlanVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPopVlanVer14.java | 66 |
throw new UnsupportedOperationException("OFActionPopVlanVer11 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionPopVlan> {
@Override
public OFActionPopVlan readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 18
short type = bb.readShort();
if(type != (short) 0x12)
throw new OFParseError("Wrong type: Expected=OFActionType.POP_VLAN(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionPopVlanVer11Funnel FUNNEL = new OFActionPopVlanVer11Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionClearActionsVer11.java | 66 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionClearActionsVer12.java | 66 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionClearActionsVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionClearActionsVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionClearActionsVer11 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionClearActions> {
@Override
public OFInstructionClearActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 5
short type = bb.readShort();
if(type != (short) 0x5)
throw new OFParseError("Wrong type: Expected=OFInstructionType.CLEAR_ACTIONS(5), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionClearActionsVer11Funnel FUNNEL = new OFInstructionClearActionsVer11Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionPopPbbVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPopPbbVer14.java | 66 |
throw new UnsupportedOperationException("OFActionPopPbbVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionPopPbb> {
@Override
public OFActionPopPbb readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 27
short type = bb.readShort();
if(type != (short) 0x1b)
throw new OFParseError("Wrong type: Expected=OFActionType.POP_PBB(27), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionPopPbbVer13Funnel FUNNEL = new OFActionPopPbbVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 530 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 530 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 530 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 530 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 530 |
OFBsnSetPktinSuppressionRequestVer10 other = (OFBsnSetPktinSuppressionRequestVer10) obj;
if( xid != other.xid)
return false;
if( enabled != other.enabled)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if( priority != other.priority)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + (enabled ? 1231 : 1237);
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + priority;
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 123 |
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 209 |
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFBucket build() {
int weight = this.weightSet ? this.weight : parentMessage.weight; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 209 |
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFBucket build() {
int weight = this.weightSet ? this.weight : parentMessage.weight; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 221 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 221 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 132 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnFlowChecksumBucketStatsRequest.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
//
@Override
public OFBsnFlowChecksumBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 127 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 216 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public OFBsnGentableBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 127 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableBucketStatsRequest.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
//
@Override
public OFBsnGentableBucketStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 132 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 221 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnPortCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 221 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 132 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
//
@Override
public OFBsnPortCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 216 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public OFBsnVlanCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 129 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsRequest.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
//
@Override
public OFBsnVlanCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 129 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 216 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public OFBsnVrfCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 129 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsRequest.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
//
@Override
public OFBsnVrfCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 209 |
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBucket build() {
int weight = this.weightSet ? this.weight : parentMessage.weight; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 209 |
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBucket build() {
int weight = this.weightSet ? this.weight : parentMessage.weight; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 499 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 499 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 499 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 499 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 499 |
OFBsnPduRxRequestVer10 other = (OFBsnPduRxRequestVer10) obj;
if( xid != other.xid)
return false;
if( timeoutMs != other.timeoutMs)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( slotNum != other.slotNum)
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (timeoutMs ^ (timeoutMs >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + slotNum;
result = prime * result + Arrays.hashCode(data);
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 499 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 499 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 499 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 499 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 499 |
OFBsnPduTxRequestVer10 other = (OFBsnPduTxRequestVer10) obj;
if( xid != other.xid)
return false;
if( txIntervalMs != other.txIntervalMs)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( slotNum != other.slotNum)
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (txIntervalMs ^ (txIntervalMs >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + slotNum;
result = prime * result + Arrays.hashCode(data);
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 204 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2fL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDelete.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDelete.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFBsnGentableEntryDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 204 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2fL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDelete.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDelete.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFBsnGentableEntryDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 367 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 367 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x21L
int subtype = bb.readInt();
if(subtype != 0x21)
throw new OFParseError("Wrong subtype: Expected=0x21L(0x21L), got="+subtype);
long timeoutMs = U32.f(bb.readInt());
OFPort portNo = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 367 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 367 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1fL
int subtype = bb.readInt();
if(subtype != 0x1f)
throw new OFParseError("Wrong subtype: Expected=0x1fL(0x1fL), got="+subtype);
long txIntervalMs = U32.f(bb.readInt());
OFPort portNo = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 283 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 283 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 21)
throw new OFParseError("Wrong length: Expected=21(21), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x23L
int subtype = bb.readInt();
if(subtype != 0x23)
throw new OFParseError("Wrong subtype: Expected=0x23L(0x23L), got="+subtype);
OFPort portNo = OFPort.read4Bytes(bb);
short slotNum = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 397 |
byteCount,
bucketStats
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFGroupStatsEntry> {
@Override
public OFGroupStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
OFGroup group = OFGroup.read4Bytes(bb);
long refCount = U32.f(bb.readInt());
// pad: 4 bytes
bb.skipBytes(4);
U64 packetCount = U64.ofRaw(bb.readLong());
U64 byteCount = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public OFBsnDebugCounterDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnDebugCounterDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public OFBsnDebugCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnDebugCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public OFBsnGentableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnGentableDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public OFBsnGentableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnGentableStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public OFBsnImageDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnImageDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFBsnLacpStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnLacpStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 283 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2aL
int subtype = bb.readInt();
if(subtype != 0x2a)
throw new OFParseError("Wrong subtype: Expected=0x2aL(0x2aL), got="+subtype);
long status = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public OFBsnSwitchPipelineStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnSwitchPipelineStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public OFBsnTableChecksumStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFBsnTableChecksumStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellCommandVer10.java | 121 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellCommandVer10.java | 203 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnShellCommand.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public long getService() {
return service;
}
@Override
public OFBsnShellCommand.Builder setService(long service) {
this.service = service;
this.serviceSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnShellCommand.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnShellCommand build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 798 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 681 |
public OFCalientFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 121 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 975 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 975 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 975 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 1021 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 945 |
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((rxPackets == null) ? 0 : rxPackets.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((rxBytes == null) ? 0 : rxBytes.hashCode());
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((rxDropped == null) ? 0 : rxDropped.hashCode());
result = prime * result + ((txDropped == null) ? 0 : txDropped.hashCode());
result = prime * result + ((rxErrors == null) ? 0 : rxErrors.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode());
result = prime * result + ((rxFrameErr == null) ? 0 : rxFrameErr.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 122 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 121 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 121 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 121 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 121 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 121 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 121 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 121 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 121 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 121 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 121 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 121 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 121 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 121 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 121 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfigStatsReply.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterConfigStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterStats> getEntries() {
return entries;
}
@Override
public OFMeterStatsReply.Builder setEntries(List<OFMeterStats> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortDesc> getEntries() {
return entries;
}
@Override
public OFPortDescStatsReply.Builder setEntries(List<OFPortDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsReply.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsRequest.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfigStatsReply.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterConfigStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterStats> getEntries() {
return entries;
}
@Override
public OFMeterStatsReply.Builder setEntries(List<OFMeterStats> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortDesc> getEntries() {
return entries;
}
@Override
public OFPortDescStatsReply.Builder setEntries(List<OFPortDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueDesc> getEntries() {
return entries;
}
@Override
public OFQueueDescStatsReply.Builder setEntries(List<OFQueueDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableDesc> getEntries() {
return entries;
}
@Override
public OFTableDescStatsReply.Builder setEntries(List<OFTableDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsReply.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsRequest.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 200 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/ControllerChannelHandler.java | 116 |
| net/onrc/openvirtex/core/io/ControllerChannelHandler.java | 150 |
WAIT_FT_REQ(false) {
@Override
void processOFError(final ControllerChannelHandler h,
final OFErrorMsg m) throws IOException {
h.log.error(
"Error waiting for Features Request (type:{}, code:{})",
m.getErrType(), m.getData());
h.channel.disconnect();
}
@Override
void processOFFeaturesRequest(final ControllerChannelHandler h,
final OFFeaturesRequest m) {
OFFeaturesReply reply = h.sw.getFeaturesReply();
if (reply == null) {
h.log.error("OVXSwitch failed to return a featuresReply message: {}"
+ h.sw.getSwitchName());
h.channel.disconnect();
}
reply=reply.createBuilder().setXid(m.getXid()).build();
//reply.setXid(m.getXid());
h.channel.write(Collections.singletonList(reply));
h.log.info("Connected dpid {} to controller {}",
h.sw.getSwitchName(), h.channel.getRemoteAddress());
h.sw.setConnected(true);
h.setState(ACTIVE);
}
}, | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5)
throw new OFParseError("Wrong subtype: Expected=0x5L(0x5L), got="+subtype);
short reportMirrorPorts = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4)
throw new OFParseError("Wrong subtype: Expected=0x4L(0x4L), got="+subtype);
short reportMirrorPorts = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3L
int subtype = bb.readInt();
if(subtype != 0x3)
throw new OFParseError("Wrong subtype: Expected=0x3L(0x3L), got="+subtype);
short reportMirrorPorts = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 38 |
final static int LENGTH = 104;
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static U64 DEFAULT_RX_PACKETS = U64.ZERO;
private final static U64 DEFAULT_TX_PACKETS = U64.ZERO;
private final static U64 DEFAULT_RX_BYTES = U64.ZERO;
private final static U64 DEFAULT_TX_BYTES = U64.ZERO;
private final static U64 DEFAULT_RX_DROPPED = U64.ZERO;
private final static U64 DEFAULT_TX_DROPPED = U64.ZERO;
private final static U64 DEFAULT_RX_ERRORS = U64.ZERO;
private final static U64 DEFAULT_TX_ERRORS = U64.ZERO;
private final static U64 DEFAULT_RX_FRAME_ERR = U64.ZERO;
private final static U64 DEFAULT_RX_OVER_ERR = U64.ZERO;
private final static U64 DEFAULT_RX_CRC_ERR = U64.ZERO;
private final static U64 DEFAULT_COLLISIONS = U64.ZERO;
// OF message fields
private final OFPort portNo;
private final U64 rxPackets;
private final U64 txPackets;
private final U64 rxBytes;
private final U64 txBytes;
private final U64 rxDropped;
private final U64 txDropped;
private final U64 rxErrors;
private final U64 txErrors;
private final U64 rxFrameErr;
private final U64 rxOverErr;
private final U64 rxCrcErr;
private final U64 collisions;
//
// Immutable default instance
final static OFPortStatsEntryVer10 DEFAULT = new OFPortStatsEntryVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 839 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 839 |
public void write(ChannelBuffer bb, OFPortStatsEntryVer11 message) {
message.portNo.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.rxPackets.getValue());
bb.writeLong(message.txPackets.getValue());
bb.writeLong(message.rxBytes.getValue());
bb.writeLong(message.txBytes.getValue());
bb.writeLong(message.rxDropped.getValue());
bb.writeLong(message.txDropped.getValue());
bb.writeLong(message.rxErrors.getValue());
bb.writeLong(message.txErrors.getValue());
bb.writeLong(message.rxFrameErr.getValue());
bb.writeLong(message.rxOverErr.getValue());
bb.writeLong(message.rxCrcErr.getValue());
bb.writeLong(message.collisions.getValue());
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFPortStatsEntryVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdCopyTtlInVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdCopyTtlInVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdCopyTtlInVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdCopyTtlIn> {
@Override
public OFActionIdCopyTtlIn readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 12
short type = bb.readShort();
if(type != (short) 0xc)
throw new OFParseError("Wrong type: Expected=OFActionType.COPY_TTL_IN(12), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdCopyTtlInVer13Funnel FUNNEL = new OFActionIdCopyTtlInVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdCopyTtlOutVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdCopyTtlOutVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdCopyTtlOutVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdCopyTtlOut> {
@Override
public OFActionIdCopyTtlOut readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 11
short type = bb.readShort();
if(type != (short) 0xb)
throw new OFParseError("Wrong type: Expected=OFActionType.COPY_TTL_OUT(11), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdCopyTtlOutVer13Funnel FUNNEL = new OFActionIdCopyTtlOutVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdDecMplsTtlVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdDecMplsTtlVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdDecMplsTtlVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdDecMplsTtl> {
@Override
public OFActionIdDecMplsTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 16
short type = bb.readShort();
if(type != (short) 0x10)
throw new OFParseError("Wrong type: Expected=OFActionType.DEC_MPLS_TTL(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdDecMplsTtlVer13Funnel FUNNEL = new OFActionIdDecMplsTtlVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdDecNwTtlVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdDecNwTtlVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdDecNwTtlVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdDecNwTtl> {
@Override
public OFActionIdDecNwTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 24
short type = bb.readShort();
if(type != (short) 0x18)
throw new OFParseError("Wrong type: Expected=OFActionType.DEC_NW_TTL(24), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdDecNwTtlVer13Funnel FUNNEL = new OFActionIdDecNwTtlVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdGroupVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdGroupVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdGroupVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdGroup> {
@Override
public OFActionIdGroup readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 22
short type = bb.readShort();
if(type != (short) 0x16)
throw new OFParseError("Wrong type: Expected=OFActionType.GROUP(22), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdGroupVer13Funnel FUNNEL = new OFActionIdGroupVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdOutputVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdOutputVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdOutputVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdOutput> {
@Override
public OFActionIdOutput readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=OFActionType.OUTPUT(0), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdOutputVer13Funnel FUNNEL = new OFActionIdOutputVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPopMplsVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPopMplsVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdPopMplsVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdPopMpls> {
@Override
public OFActionIdPopMpls readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 20
short type = bb.readShort();
if(type != (short) 0x14)
throw new OFParseError("Wrong type: Expected=OFActionType.POP_MPLS(20), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdPopMplsVer13Funnel FUNNEL = new OFActionIdPopMplsVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPopPbbVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPopPbbVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdPopPbbVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdPopPbb> {
@Override
public OFActionIdPopPbb readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 27
short type = bb.readShort();
if(type != (short) 0x1b)
throw new OFParseError("Wrong type: Expected=OFActionType.POP_PBB(27), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdPopPbbVer13Funnel FUNNEL = new OFActionIdPopPbbVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPopVlanVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPopVlanVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdPopVlanVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdPopVlan> {
@Override
public OFActionIdPopVlan readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 18
short type = bb.readShort();
if(type != (short) 0x12)
throw new OFParseError("Wrong type: Expected=OFActionType.POP_VLAN(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdPopVlanVer13Funnel FUNNEL = new OFActionIdPopVlanVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPushMplsVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPushMplsVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdPushMplsVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdPushMpls> {
@Override
public OFActionIdPushMpls readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 19
short type = bb.readShort();
if(type != (short) 0x13)
throw new OFParseError("Wrong type: Expected=OFActionType.PUSH_MPLS(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdPushMplsVer13Funnel FUNNEL = new OFActionIdPushMplsVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPushPbbVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPushPbbVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdPushPbbVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdPushPbb> {
@Override
public OFActionIdPushPbb readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 26
short type = bb.readShort();
if(type != (short) 0x1a)
throw new OFParseError("Wrong type: Expected=OFActionType.PUSH_PBB(26), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdPushPbbVer13Funnel FUNNEL = new OFActionIdPushPbbVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPushVlanVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPushVlanVer14.java | 66 |
throw new UnsupportedOperationException("OFActionIdPushVlanVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdPushVlan> {
@Override
public OFActionIdPushVlan readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 17
short type = bb.readShort();
if(type != (short) 0x11)
throw new OFParseError("Wrong type: Expected=OFActionType.PUSH_VLAN(17), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdPushVlanVer13Funnel FUNNEL = new OFActionIdPushVlanVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetFieldVer13.java | 67 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetFieldVer14.java | 67 |
throw new UnsupportedOperationException("OFActionIdSetFieldVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdSetField> {
@Override
public OFActionIdSetField readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 25
short type = bb.readShort();
if(type != (short) 0x19)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_FIELD(25), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdSetFieldVer13Funnel FUNNEL = new OFActionIdSetFieldVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetMplsTtlVer13.java | 67 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetMplsTtlVer14.java | 67 |
throw new UnsupportedOperationException("OFActionIdSetMplsTtlVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdSetMplsTtl> {
@Override
public OFActionIdSetMplsTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 15
short type = bb.readShort();
if(type != (short) 0xf)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_MPLS_TTL(15), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdSetMplsTtlVer13Funnel FUNNEL = new OFActionIdSetMplsTtlVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetNwTtlVer13.java | 67 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetNwTtlVer14.java | 67 |
throw new UnsupportedOperationException("OFActionIdSetNwTtlVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdSetNwTtl> {
@Override
public OFActionIdSetNwTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 23
short type = bb.readShort();
if(type != (short) 0x17)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_NW_TTL(23), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdSetNwTtlVer13Funnel FUNNEL = new OFActionIdSetNwTtlVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetQueueVer13.java | 67 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetQueueVer14.java | 67 |
throw new UnsupportedOperationException("OFActionIdSetQueueVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdSetQueue> {
@Override
public OFActionIdSetQueue readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 21
short type = bb.readShort();
if(type != (short) 0x15)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_QUEUE(21), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdSetQueueVer13Funnel FUNNEL = new OFActionIdSetQueueVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIdleNotificationVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIdleNotificationVer14.java | 66 |
throw new UnsupportedOperationException("OFBsnTlvIdleNotificationVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIdleNotification> {
@Override
public OFBsnTlvIdleNotification readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x7
short type = bb.readShort();
if(type != (short) 0x7)
throw new OFParseError("Wrong type: Expected=0x7(0x7), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFBsnTlvIdleNotificationVer13Funnel FUNNEL = new OFBsnTlvIdleNotificationVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvSetLoopbackModeVer13.java | 67 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvSetLoopbackModeVer14.java | 67 |
throw new UnsupportedOperationException("OFBsnTlvSetLoopbackModeVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvSetLoopbackMode> {
@Override
public OFBsnTlvSetLoopbackMode readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x4a
short type = bb.readShort();
if(type != (short) 0x4a)
throw new OFParseError("Wrong type: Expected=0x4a(0x4a), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFBsnTlvSetLoopbackModeVer13Funnel FUNNEL = new OFBsnTlvSetLoopbackModeVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvStripMplsL2OnIngressVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvStripMplsL2OnIngressVer14.java | 66 |
throw new UnsupportedOperationException("OFBsnTlvStripMplsL2OnIngressVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvStripMplsL2OnIngress> {
@Override
public OFBsnTlvStripMplsL2OnIngress readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x4b
short type = bb.readShort();
if(type != (short) 0x4b)
throw new OFParseError("Wrong type: Expected=0x4b(0x4b), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFBsnTlvStripMplsL2OnIngressVer13Funnel FUNNEL = new OFBsnTlvStripMplsL2OnIngressVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvStripMplsL3OnIngressVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvStripMplsL3OnIngressVer14.java | 66 |
throw new UnsupportedOperationException("OFBsnTlvStripMplsL3OnIngressVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvStripMplsL3OnIngress> {
@Override
public OFBsnTlvStripMplsL3OnIngress readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x4c
short type = bb.readShort();
if(type != (short) 0x4c)
throw new OFParseError("Wrong type: Expected=0x4c(0x4c), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFBsnTlvStripMplsL3OnIngressVer13Funnel FUNNEL = new OFBsnTlvStripMplsL3OnIngressVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvStripVlanOnEgressVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvStripVlanOnEgressVer14.java | 66 |
throw new UnsupportedOperationException("OFBsnTlvStripVlanOnEgressVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvStripVlanOnEgress> {
@Override
public OFBsnTlvStripVlanOnEgress readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x49
short type = bb.readShort();
if(type != (short) 0x49)
throw new OFParseError("Wrong type: Expected=0x49(0x49), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFBsnTlvStripVlanOnEgressVer13Funnel FUNNEL = new OFBsnTlvStripVlanOnEgressVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdApplyActionsVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdApplyActionsVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionIdApplyActionsVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdApplyActions> {
@Override
public OFInstructionIdApplyActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 4
short type = bb.readShort();
if(type != (short) 0x4)
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdApplyActionsVer13Funnel FUNNEL = new OFInstructionIdApplyActionsVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdClearActionsVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdClearActionsVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionIdClearActionsVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdClearActions> {
@Override
public OFInstructionIdClearActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 5
short type = bb.readShort();
if(type != (short) 0x5)
throw new OFParseError("Wrong type: Expected=OFInstructionType.CLEAR_ACTIONS(5), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdClearActionsVer13Funnel FUNNEL = new OFInstructionIdClearActionsVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdGotoTableVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdGotoTableVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionIdGotoTableVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdGotoTable> {
@Override
public OFInstructionIdGotoTable readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=OFInstructionType.GOTO_TABLE(1), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdGotoTableVer13Funnel FUNNEL = new OFInstructionIdGotoTableVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdMeterVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdMeterVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionIdMeterVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdMeter> {
@Override
public OFInstructionIdMeter readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 6
short type = bb.readShort();
if(type != (short) 0x6)
throw new OFParseError("Wrong type: Expected=OFInstructionType.METER(6), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdMeterVer13Funnel FUNNEL = new OFInstructionIdMeterVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdWriteActionsVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdWriteActionsVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionIdWriteActionsVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdWriteActions> {
@Override
public OFInstructionIdWriteActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 3
short type = bb.readShort();
if(type != (short) 0x3)
throw new OFParseError("Wrong type: Expected=OFInstructionType.WRITE_ACTIONS(3), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdWriteActionsVer13Funnel FUNNEL = new OFInstructionIdWriteActionsVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdWriteMetadataVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdWriteMetadataVer14.java | 66 |
throw new UnsupportedOperationException("OFInstructionIdWriteMetadataVer13 has no mutable properties -- builder unneeded");
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdWriteMetadata> {
@Override
public OFInstructionIdWriteMetadata readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=OFInstructionType.WRITE_METADATA(2), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFInstructionIdWriteMetadataVer13Funnel FUNNEL = new OFInstructionIdWriteMetadataVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 212 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 471 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 471 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 471 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 471 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 471 |
OFBsnVportQInQVer10 other = (OFBsnVportQInQVer10) obj;
if( portNo != other.portNo)
return false;
if( ingressTpid != other.ingressTpid)
return false;
if( ingressVlanId != other.ingressVlanId)
return false;
if( egressTpid != other.egressTpid)
return false;
if( egressVlanId != other.egressVlanId)
return false;
if (ifName == null) {
if (other.ifName != null)
return false;
} else if (!ifName.equals(other.ifName))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (portNo ^ (portNo >>> 32));
result = prime * result + ingressTpid;
result = prime * result + ingressVlanId;
result = prime * result + egressTpid;
result = prime * result + egressVlanId;
result = prime * result + ((ifName == null) ? 0 : ifName.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 212 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 212 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 229 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 229 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 229 |
return new OFPacketQueueVer12(
queueId,
port,
properties
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFPacketQueue> {
@Override
public OFPacketQueue readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
long queueId = U32.f(bb.readInt());
OFPort port = OFPort.read4Bytes(bb);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 6 bytes
bb.skipBytes(6);
List<OFQueueProp> properties = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFQueuePropVer12.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
//
@Override
public OFBsnDebugCounterDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnDebugCounterDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
//
@Override
public OFBsnDebugCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnDebugCounterStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
//
@Override
public OFBsnGentableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnGentableDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
//
@Override
public OFBsnGentableStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnGentableStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
//
@Override
public OFBsnImageDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnImageDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 212 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
//
@Override
public OFBsnLacpStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnLacpStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
//
@Override
public OFBsnSwitchPipelineStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnSwitchPipelineStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
//
@Override
public OFBsnTableChecksumStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFBsnTableChecksumStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOchSignalIdVer13.java | 112 |
| org/projectfloodlight/openflow/protocol/ver13/OFOchSignalIdVer13.java | 192 |
@Override
public short getGrid() {
return grid;
}
@Override
public OFOchSignalId.Builder setGrid(short grid) {
this.grid = grid;
this.gridSet = true;
return this;
}
@Override
public short getCs() {
return cs;
}
@Override
public OFOchSignalId.Builder setCs(short cs) {
this.cs = cs;
this.csSet = true;
return this;
}
@Override
public int getN() {
return n;
}
@Override
public OFOchSignalId.Builder setN(int n) {
this.n = n;
this.nSet = true;
return this;
}
@Override
public int getM() {
return m;
}
@Override
public OFOchSignalId.Builder setM(int m) {
this.m = m;
this.mSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOchSignalId build() {
short grid = this.gridSet ? this.grid : parentMessage.grid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescPropOpticalTransportVer13.java | 112 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescPropOpticalTransportVer13.java | 192 |
@Override
public int getType() {
return type;
}
@Override
public OFPortDescPropOpticalTransport.Builder setType(int type) {
this.type = type;
this.typeSet = true;
return this;
}
@Override
public short getPortSignalType() {
return portSignalType;
}
@Override
public OFPortDescPropOpticalTransport.Builder setPortSignalType(short portSignalType) {
this.portSignalType = portSignalType;
this.portSignalTypeSet = true;
return this;
}
@Override
public short getReserved() {
return reserved;
}
@Override
public OFPortDescPropOpticalTransport.Builder setReserved(short reserved) {
this.reserved = reserved;
this.reservedSet = true;
return this;
}
@Override
public short getPortType() {
return portType;
}
@Override
public OFPortDescPropOpticalTransport.Builder setPortType(short portType) {
this.portType = portType;
this.portTypeSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortDescPropOpticalTransport build() {
int type = this.typeSet ? this.type : parentMessage.type; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 212 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 202 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFActionBsnMirror build() {
OFPort destPort = this.destPortSet ? this.destPort : parentMessage.destPort; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskReplyVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskReplyVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetIpMaskReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public short getIndex() {
return index;
}
@Override
public OFBsnGetIpMaskReply.Builder setIndex(short index) {
this.index = index;
this.indexSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFBsnGetIpMaskReply.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public OFBsnGetIpMaskReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableReplyVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableReplyVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetL2TableReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public short getL2TableEnable() {
return l2TableEnable;
}
@Override
public OFBsnGetL2TableReply.Builder setL2TableEnable(short l2TableEnable) {
this.l2TableEnable = l2TableEnable;
this.l2TableEnableSet = true;
return this;
}
@Override
public int getL2TablePriority() {
return l2TablePriority;
}
@Override
public OFBsnGetL2TableReply.Builder setL2TablePriority(int l2TablePriority) {
this.l2TablePriority = l2TablePriority;
this.l2TablePrioritySet = true;
return this;
}
@Override
public OFBsnGetL2TableReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetReplyVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetReplyVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnHybridGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1cL;
}
@Override
public short getHybridEnable() {
return hybridEnable;
}
@Override
public OFBsnHybridGetReply.Builder setHybridEnable(short hybridEnable) {
this.hybridEnable = hybridEnable;
this.hybridEnableSet = true;
return this;
}
@Override
public int getHybridVersion() {
return hybridVersion;
}
@Override
public OFBsnHybridGetReply.Builder setHybridVersion(int hybridVersion) {
this.hybridVersion = hybridVersion;
this.hybridVersionSet = true;
return this;
}
@Override
public OFBsnHybridGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetIpMaskVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetIpMaskVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetIpMask.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x0L;
}
@Override
public short getIndex() {
return index;
}
@Override
public OFBsnSetIpMask.Builder setIndex(short index) {
this.index = index;
this.indexSet = true;
return this;
}
@Override
public long getMask() {
return mask;
}
@Override
public OFBsnSetIpMask.Builder setMask(long mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public OFBsnSetIpMask build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableRequestVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableRequestVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetL2TableRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public boolean isL2TableEnable() {
return l2TableEnable;
}
@Override
public OFBsnSetL2TableRequest.Builder setL2TableEnable(boolean l2TableEnable) {
this.l2TableEnable = l2TableEnable;
this.l2TableEnableSet = true;
return this;
}
@Override
public int getL2TablePriority() {
return l2TablePriority;
}
@Override
public OFBsnSetL2TableRequest.Builder setL2TablePriority(int l2TablePriority) {
this.l2TablePriority = l2TablePriority;
this.l2TablePrioritySet = true;
return this;
}
@Override
public OFBsnSetL2TableRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 117 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFCapabilitiesSerializerVer10.java | 45 |
| org/projectfloodlight/openflow/protocol/ver11/OFCapabilitiesSerializerVer11.java | 44 |
| org/projectfloodlight/openflow/protocol/ver12/OFCapabilitiesSerializerVer12.java | 44 |
| org/projectfloodlight/openflow/protocol/ver13/OFCapabilitiesSerializerVer13.java | 44 |
| org/projectfloodlight/openflow/protocol/ver14/OFCapabilitiesSerializerVer14.java | 44 |
public static Set<OFCapabilities> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFCapabilities> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFCapabilities> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFCapabilities> ofWireValue(int val) {
EnumSet<OFCapabilities> set = EnumSet.noneOf(OFCapabilities.class);
if((val & FLOW_STATS_VAL) != 0)
set.add(OFCapabilities.FLOW_STATS);
if((val & TABLE_STATS_VAL) != 0)
set.add(OFCapabilities.TABLE_STATS);
if((val & PORT_STATS_VAL) != 0)
set.add(OFCapabilities.PORT_STATS);
if((val & STP_VAL) != 0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 202 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFActionBsnMirror build() {
OFPort destPort = this.destPortSet ? this.destPort : parentMessage.destPort; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 117 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 117 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionApplyActionsVer11.java | 163 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionApplyActionsVer12.java | 163 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionApplyActionsVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionApplyActionsVer14.java | 163 |
return new OFInstructionApplyActionsVer11(
actions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionApplyActions> {
@Override
public OFInstructionApplyActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 4
short type = bb.readShort();
if(type != (short) 0x4)
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteActionsVer11.java | 163 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteActionsVer12.java | 163 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteActionsVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteActionsVer14.java | 163 |
return new OFInstructionWriteActionsVer11(
actions
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionWriteActions> {
@Override
public OFInstructionWriteActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 3
short type = bb.readShort();
if(type != (short) 0x3)
throw new OFParseError("Wrong type: Expected=OFInstructionType.WRITE_ACTIONS(3), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteMetadataVer11.java | 205 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteMetadataVer12.java | 205 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteMetadataVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteMetadataVer14.java | 205 |
return new OFInstructionWriteMetadataVer11(
metadata,
metadataMask
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionWriteMetadata> {
@Override
public OFInstructionWriteMetadata readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=OFInstructionType.WRITE_METADATA(2), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
U64 metadata = U64.ofRaw(bb.readLong());
U64 metadataMask = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 202 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFActionBsnMirror build() {
OFPort destPort = this.destPortSet ? this.destPort : parentMessage.destPort; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 117 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 117 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 202 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFActionBsnMirror build() {
OFPort destPort = this.destPortSet ? this.destPort : parentMessage.destPort; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnArpIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3cL;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnArpIdle.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnArpIdle.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public OFBsnArpIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 117 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 117 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x25L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 115 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x32L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnGentableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 118 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLog.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3fL;
}
@Override
public OFBsnLoglevel getLoglevel() {
return loglevel;
}
@Override
public OFBsnLog.Builder setLoglevel(OFBsnLoglevel loglevel) {
this.loglevel = loglevel;
this.loglevelSet = true;
return this;
}
@Override
public String getData() {
return data;
}
@Override
public OFBsnLog.Builder setData(String data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLog build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 117 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3bL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetLacpReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnSetLacpReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3dL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableSetBucketsSize.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnTableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnTableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 117 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 191 |
return new OFMeterBandDropVer13(
rate,
burstSize
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMeterBandDrop> {
@Override
public OFMeterBandDrop readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long rate = U32.f(bb.readInt());
long burstSize = U32.f(bb.readInt());
// pad: 4 bytes
bb.skipBytes(4); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 202 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFActionBsnMirror build() {
OFPort destPort = this.destPortSet ? this.destPort : parentMessage.destPort; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnArpIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3cL;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnArpIdle.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnArpIdle.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public OFBsnArpIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x25L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 115 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x32L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnGentableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 118 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLog.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3fL;
}
@Override
public OFBsnLoglevel getLoglevel() {
return loglevel;
}
@Override
public OFBsnLog.Builder setLoglevel(OFBsnLoglevel loglevel) {
this.loglevel = loglevel;
this.loglevelSet = true;
return this;
}
@Override
public String getData() {
return data;
}
@Override
public OFBsnLog.Builder setData(String data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLog build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3bL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetLacpReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnSetLacpReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 202 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3dL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableSetBucketsSize.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnTableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnTableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 197 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 260 |
return new OFBsnGentableDescStatsEntryVer13(
tableId,
name,
bucketsSize,
maxEntries
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnGentableDescStatsEntry> {
@Override
public OFBsnGentableDescStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length != 48)
throw new OFParseError("Wrong length: Expected=48(48), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
GenTableId tableId = GenTableId.read2Bytes(bb);
String name = ChannelUtils.readFixedLengthString(bb, 32);
long bucketsSize = U32.f(bb.readInt());
long maxEntries = U32.f(bb.readInt());
// pad: 4 bytes
bb.skipBytes(4); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 467 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 467 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 6
byte type = bb.readByte();
if(type != (byte) 0x6)
throw new OFParseError("Wrong type: Expected=OFType.FEATURES_REPLY(6), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
DatapathId datapathId = DatapathId.of(bb.readLong());
long nBuffers = U32.f(bb.readInt());
short nTables = U8.f(bb.readByte());
OFAuxId auxiliaryId = OFAuxId.readByte(bb);
// pad: 2 bytes
bb.skipBytes(2);
Set<OFCapabilities> capabilities = OFCapabilitiesSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 222 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 222 |
return new OFMeterConfigVer13(
flags,
meterId,
entries
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMeterConfig> {
@Override
public OFMeterConfig readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int flags = U16.f(bb.readShort());
long meterId = U32.f(bb.readInt());
List<OFMeterBand> entries = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFMeterBandVer13.READER); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 83 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 74 |
private final Logger log = LogManager.getLogger(OVXFlowAddVer13.class.getName());
private OVXSwitch sw = null;
private final List<OFAction> approvedActions = new LinkedList<OFAction>();
private long ovxCookie = -1;
@Override
public void devirtualize(final OVXSwitch sw) {
/* Drop LLDP-matching messages sent by some applications */
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE) != null) {
if (((OFMatchV3)this.getMatch()).get(MatchField.ETH_TYPE).getValue() == Ethernet.TYPE_LLDP) {
return;
}
}
this.sw = sw;
FlowTable ft = this.sw.getFlowTable();
int bufferId = OFBufferId.NO_BUFFER.getInt();
if (sw.getFromBufferMap(this.bufferId.getInt()) != null) {
bufferId = sw.getFromBufferMap(this.bufferId.getInt()).getBufferId().getInt();
}
short inport = -1;
if ((this.getMatch()).get(MatchField.IN_PORT) != null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 643 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 643 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 798 |
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 353 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 353 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 353 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 353 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 13
byte type = bb.readByte();
if(type != (byte) 0xd)
throw new OFParseError("Wrong type: Expected=OFType.PACKET_OUT(13), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort inPort = OFPort.read4Bytes(bb);
int actionsLen = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6);
List<OFAction> actions = ChannelUtils.readList(bb, actionsLen, OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloElemVersionbitmapVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloElemVersionbitmapVer14.java | 163 |
return new OFHelloElemVersionbitmapVer13(
bitmaps
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFHelloElemVersionbitmap> {
@Override
public OFHelloElemVersionbitmap readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> bitmaps = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplySetfieldMissVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplySetfieldMissVer14.java | 163 |
return new OFTableFeaturePropApplySetfieldMissVer13(
oxmIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropApplySetfieldMiss> {
@Override
public OFTableFeaturePropApplySetfieldMiss readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xf
short type = bb.readShort();
if(type != (short) 0xf)
throw new OFParseError("Wrong type: Expected=0xf(0xf), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplySetfieldVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplySetfieldVer14.java | 163 |
return new OFTableFeaturePropApplySetfieldVer13(
oxmIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropApplySetfield> {
@Override
public OFTableFeaturePropApplySetfield readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xe
short type = bb.readShort();
if(type != (short) 0xe)
throw new OFParseError("Wrong type: Expected=0xe(0xe), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropMatchVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropMatchVer14.java | 163 |
return new OFTableFeaturePropMatchVer13(
oxmIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropMatch> {
@Override
public OFTableFeaturePropMatch readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x8
short type = bb.readShort();
if(type != (short) 0x8)
throw new OFParseError("Wrong type: Expected=0x8(0x8), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropNextTablesMissVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropNextTablesMissVer14.java | 163 |
return new OFTableFeaturePropNextTablesMissVer13(
nextTableIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropNextTablesMiss> {
@Override
public OFTableFeaturePropNextTablesMiss readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3
short type = bb.readShort();
if(type != (short) 0x3)
throw new OFParseError("Wrong type: Expected=0x3(0x3), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U8> nextTableIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U8.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropNextTablesVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropNextTablesVer14.java | 163 |
return new OFTableFeaturePropNextTablesVer13(
nextTableIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropNextTables> {
@Override
public OFTableFeaturePropNextTables readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=0x2(0x2), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U8> nextTableIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U8.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWildcardsVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWildcardsVer14.java | 163 |
return new OFTableFeaturePropWildcardsVer13(
oxmIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropWildcards> {
@Override
public OFTableFeaturePropWildcards readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xa
short type = bb.readShort();
if(type != (short) 0xa)
throw new OFParseError("Wrong type: Expected=0xa(0xa), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteSetfieldMissVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteSetfieldMissVer14.java | 163 |
return new OFTableFeaturePropWriteSetfieldMissVer13(
oxmIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropWriteSetfieldMiss> {
@Override
public OFTableFeaturePropWriteSetfieldMiss readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xd
short type = bb.readShort();
if(type != (short) 0xd)
throw new OFParseError("Wrong type: Expected=0xd(0xd), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteSetfieldVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteSetfieldVer14.java | 163 |
return new OFTableFeaturePropWriteSetfieldVer13(
oxmIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropWriteSetfield> {
@Override
public OFTableFeaturePropWriteSetfield readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xc
short type = bb.readShort();
if(type != (short) 0xc)
throw new OFParseError("Wrong type: Expected=0xc(0xc), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 114 |
| net/onrc/openvirtex/messages/actions/ver13/OVXActionOutputVer13.java | 110 |
fm=OVXFactoryInst.myOVXFactory.buildOVXFlowModifyStrict(fm.getXid(), fm.getMatch(),U64.of(match.getCookie()), fm.getIdleTimeout(), fm.getHardTimeout(), fm.getPriority(), fm.getBufferId(), fm.getOutPort(), fm.getFlags(), fm.getActions());
// TODO: Check if the FM has been retrieved
for (final OVXPort outPort : outPortList) {
Integer linkId = 0;
Integer flowId = 0;
/*
* OVXSwitch is BigSwitch and inPort & outPort belongs to
* different physical switches
*/
if (sw instanceof OVXBigSwitch
&& inPort.getPhysicalPort().getParentSwitch() != outPort
.getPhysicalPort().getParentSwitch()) {
// Retrieve the route between the two OVXPorts
final OVXBigSwitch bigSwitch = (OVXBigSwitch) outPort
.getParentSwitch();
final SwitchRoute route = bigSwitch.getRoute(inPort,
outPort);
if (route == null) {
this.log.error(
"Cannot retrieve the bigswitch internal route between ports {} {}, dropping message",
inPort, outPort);
throw new DroppedMessageException(
"No such internal route");
}
// If the inPort belongs to an OVXLink, add rewrite actions
// to unset the packet link fields
if (inPort.isLink()) {
final OVXPort dstPort = vnet.getNeighborPort(inPort);
final OVXLink link = inPort.getLink().getOutLink();
if (link != null
&& (!match.isFullyWildcarded(MatchField.ETH_DST) || !match.isFullyWildcarded(MatchField.ETH_SRC))) {
try {
flowId = vnet.getFlowManager().getFlowId(
match.getEthSrc().getBytes(), | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFConfigFlagsSerializerVer10.java | 41 |
| org/projectfloodlight/openflow/protocol/ver11/OFConfigFlagsSerializerVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFConfigFlagsSerializerVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver13/OFConfigFlagsSerializerVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver14/OFConfigFlagsSerializerVer14.java | 41 |
public static Set<OFConfigFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFConfigFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFConfigFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFConfigFlags> ofWireValue(short val) {
EnumSet<OFConfigFlags> set = EnumSet.noneOf(OFConfigFlags.class);
if((val & FRAG_MASK_VAL) == FRAG_NORMAL_VAL)
set.add(OFConfigFlags.FRAG_NORMAL);
else if((val & FRAG_MASK_VAL) == FRAG_DROP_VAL)
set.add(OFConfigFlags.FRAG_DROP);
else if((val & FRAG_MASK_VAL) == FRAG_REASM_VAL)
set.add(OFConfigFlags.FRAG_REASM); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 119 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFErrorTypeSerializerVer11.java | 44 |
| org/projectfloodlight/openflow/protocol/ver12/OFErrorTypeSerializerVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 48 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 52 |
public static OFErrorType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFErrorType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFErrorType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFErrorType ofWireValue(short val) {
switch(val) {
case HELLO_FAILED_VAL:
return OFErrorType.HELLO_FAILED;
case BAD_REQUEST_VAL:
return OFErrorType.BAD_REQUEST;
case BAD_ACTION_VAL:
return OFErrorType.BAD_ACTION;
case BAD_INSTRUCTION_VAL:
return OFErrorType.BAD_INSTRUCTION;
case BAD_MATCH_VAL:
return OFErrorType.BAD_MATCH;
case FLOW_MOD_FAILED_VAL:
return OFErrorType.FLOW_MOD_FAILED;
case GROUP_MOD_FAILED_VAL:
return OFErrorType.GROUP_MOD_FAILED;
case PORT_MOD_FAILED_VAL:
return OFErrorType.PORT_MOD_FAILED;
case TABLE_MOD_FAILED_VAL:
return OFErrorType.TABLE_MOD_FAILED;
case QUEUE_OP_FAILED_VAL:
return OFErrorType.QUEUE_OP_FAILED;
case SWITCH_CONFIG_FAILED_VAL:
return OFErrorType.SWITCH_CONFIG_FAILED; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 119 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 119 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 166 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 166 |
return new OFBsnGentableEntryDescStatsEntryVer13(
checksum,
key,
value
);
}
}
static class Builder implements OFBsnGentableEntryDescStatsEntry.Builder {
// OF message fields
private boolean checksumSet;
private U128 checksum;
private boolean keySet;
private List<OFBsnTlv> key;
private boolean valueSet;
private List<OFBsnTlv> value;
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 661 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 661 |
public void write(ChannelBuffer bb, OFBsnLacpStatsEntryVer13 message) {
message.portNo.write4Bytes(bb);
bb.writeShort(U16.t(message.actorSysPriority));
message.actorSysMac.write6Bytes(bb);
bb.writeShort(U16.t(message.actorPortPriority));
bb.writeShort(U16.t(message.actorPortNum));
bb.writeShort(U16.t(message.actorKey));
bb.writeByte(U8.t(message.convergenceStatus));
// pad: 1 bytes
bb.writeZero(1);
bb.writeShort(U16.t(message.partnerSysPriority));
message.partnerSysMac.write6Bytes(bb);
bb.writeShort(U16.t(message.partnerPortPriority));
bb.writeShort(U16.t(message.partnerPortNum));
bb.writeShort(U16.t(message.partnerKey));
// pad: 2 bytes
bb.writeZero(2);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnLacpStatsEntryVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 193 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfigStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterConfigStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 193 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeatures getFeatures() {
return features;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFeatures(OFMeterFeatures features) {
this.features = features;
this.featuresSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 193 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 239 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 239 |
}
@Override
public OFTableFeatures build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
U64 metadataMatch = this.metadataMatchSet ? this.metadataMatch : parentMessage.metadataMatch;
if(metadataMatch == null)
throw new NullPointerException("Property metadataMatch must not be null");
U64 metadataWrite = this.metadataWriteSet ? this.metadataWrite : parentMessage.metadataWrite;
if(metadataWrite == null)
throw new NullPointerException("Property metadataWrite must not be null");
long config = this.configSet ? this.config : parentMessage.config;
long maxEntries = this.maxEntriesSet ? this.maxEntries : parentMessage.maxEntries;
List<OFTableFeatureProp> properties = this.propertiesSet ? this.properties : parentMessage.properties;
if(properties == null)
throw new NullPointerException("Property properties must not be null");
//
return new OFTableFeaturesVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 193 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfigStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterConfigStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 193 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeatures getFeatures() {
return features;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFeatures(OFMeterFeatures features) {
this.features = features;
this.featuresSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 193 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 198 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPortModVer10.java | 41 |
| net/onrc/openvirtex/messages/ver13/OVXPortModVer13.java | 37 |
protected OVXPortModVer10(long xid, OFPort portNo, MacAddress hwAddr,
long config, long mask, long advertise) {
super(xid, portNo, hwAddr, config, mask, advertise);
// TODO Auto-generated constructor stub
}
@Override
public void devirtualize(final OVXSwitch sw) {
// TODO Auto-generated method stub
// assume port numbers are virtual
final OVXPort p = sw.getPort(this.getPortNo().getShortPortNumber());
if (p == null) {
ChannelBuffer buf = ChannelBuffers.dynamicBuffer();
this.writeTo(buf);
byte[] byte_msg=buf.array();
OFErrorCauseData offendingMsg=OFErrorCauseData.of(byte_msg, OFVersion.OF_10);
final OVXErrorMsg err =(OVXErrorMsg) OVXFactoryInst.myOVXFactory.buildOVXBadRequestErrorMsg(this.getXid(),OFBadRequestCode.EPERM,offendingMsg);
sw.sendMsg(err, sw);
return;
}
// set physical port number - anything else to do?
final PhysicalPort phyPort = p.getPhysicalPort();
this.portNo=phyPort.getPortNo();
OVXMessageUtil.translateXid(this, p);
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 266 |
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 266 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 266 |
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 266 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 266 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 266 |
public OFBadActionErrorMsg readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 2
short errType = bb.readShort();
if(errType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16)
throw new OFParseError("Wrong subtype: Expected=0x16L(0x16L), got="+subtype);
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x14L
int subtype = bb.readInt();
if(subtype != 0x14)
throw new OFParseError("Wrong subtype: Expected=0x14L(0x14L), got="+subtype);
long enabled = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x12L
int subtype = bb.readInt();
if(subtype != 0x12)
throw new OFParseError("Wrong subtype: Expected=0x12L(0x12L), got="+subtype);
long enable = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x19L
int subtype = bb.readInt();
if(subtype != 0x19)
throw new OFParseError("Wrong subtype: Expected=0x19L(0x19L), got="+subtype);
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1aL
int subtype = bb.readInt();
if(subtype != 0x1a)
throw new OFParseError("Wrong subtype: Expected=0x1aL(0x1aL), got="+subtype);
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x11L
int subtype = bb.readInt();
if(subtype != 0x11)
throw new OFParseError("Wrong subtype: Expected=0x11L(0x11L), got="+subtype);
long vportNo = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 273 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 273 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 273 |
public OFFlowStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 17
byte type = bb.readByte();
if(type != (byte) 0x11)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionOutputVer11.java | 198 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionOutputVer12.java | 198 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionOutputVer13.java | 198 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionOutputVer14.java | 198 |
return new OFActionOutputVer11(
port,
maxLen
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionOutput> {
@Override
public OFActionOutput readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=OFActionType.OUTPUT(0), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFPort port = OFPort.read4Bytes(bb);
int maxLen = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 266 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 266 |
public OFBadActionErrorMsg readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 2
short errType = bb.readShort();
if(errType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 38 |
final static int LENGTH = 64;
private final static Set<OFBsnVportL2GreFlags> DEFAULT_FLAGS = ImmutableSet.<OFBsnVportL2GreFlags>of();
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static OFPort DEFAULT_LOOPBACK_PORT_NO = OFPort.ANY;
private final static MacAddress DEFAULT_LOCAL_MAC = MacAddress.NONE;
private final static MacAddress DEFAULT_NH_MAC = MacAddress.NONE;
private final static IPv4Address DEFAULT_SRC_IP = IPv4Address.NONE;
private final static IPv4Address DEFAULT_DST_IP = IPv4Address.NONE;
private final static short DEFAULT_DSCP = (short) 0x0;
private final static short DEFAULT_TTL = (short) 0x0;
private final static long DEFAULT_VPN = 0x0L;
private final static long DEFAULT_RATE_LIMIT = 0x0L;
private final static String DEFAULT_IF_NAME = "";
// OF message fields
private final Set<OFBsnVportL2GreFlags> flags;
private final OFPort portNo;
private final OFPort loopbackPortNo;
private final MacAddress localMac;
private final MacAddress nhMac;
private final IPv4Address srcIp;
private final IPv4Address dstIp;
private final short dscp;
private final short ttl;
private final long vpn;
private final long rateLimit;
private final String ifName;
//
// Immutable default instance
final static OFBsnVportL2GreVer11 DEFAULT = new OFBsnVportL2GreVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 273 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 273 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 273 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 273 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 273 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 273 |
public OFFlowStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 313 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 313 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 313 |
public OFGroupAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 496 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 496 |
public OFAggregateStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 301 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 266 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 266 |
public OFBadActionErrorMsg readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 2
short errType = bb.readShort();
if(errType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 273 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 273 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 273 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 273 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 273 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 273 |
public OFFlowStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 313 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 313 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 313 |
public OFGroupAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 496 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 512 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 496 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 273 |
public OFAggregateStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 301 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 266 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 266 |
public OFBadActionErrorMsg readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 2
short errType = bb.readShort();
if(errType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 341 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 341 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 303 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 273 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 273 |
public OFBsnDebugCounterDescStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x27L
int subtype = bb.readInt();
if(subtype != 0x27)
throw new OFParseError("Wrong subtype: Expected=0x27L(0x27L), got="+subtype);
long enabled = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x24L
int subtype = bb.readInt();
if(subtype != 0x24)
throw new OFParseError("Wrong subtype: Expected=0x24L(0x24L), got="+subtype);
long enable = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3aL
int subtype = bb.readInt();
if(subtype != 0x3a)
throw new OFParseError("Wrong subtype: Expected=0x3aL(0x3aL), got="+subtype);
long numAux = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x36L
int subtype = bb.readInt();
if(subtype != 0x36)
throw new OFParseError("Wrong subtype: Expected=0x36L(0x36L), got="+subtype);
long status = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnStatsRequestVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientStatsRequestVer13.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 245 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 245 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2dL
int subtype = bb.readInt();
if(subtype != 0x2d)
throw new OFParseError("Wrong subtype: Expected=0x2dL(0x2dL), got="+subtype);
U64 timeMs = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 414 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 414 |
throw new UnsupportedOperationException("Property actions not supported in version 1.3");
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFFeaturesReply.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
//
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
DatapathId datapathId = this.datapathIdSet ? this.datapathId : DEFAULT_DATAPATH_ID;
if(datapathId == null)
throw new NullPointerException("Property datapathId must not be null");
long nBuffers = this.nBuffersSet ? this.nBuffers : DEFAULT_N_BUFFERS;
short nTables = this.nTablesSet ? this.nTables : DEFAULT_N_TABLES;
OFAuxId auxiliaryId = this.auxiliaryIdSet ? this.auxiliaryId : DEFAULT_AUXILIARY_ID;
if(auxiliaryId == null)
throw new NullPointerException("Property auxiliaryId must not be null");
Set<OFCapabilities> capabilities = this.capabilitiesSet ? this.capabilities : DEFAULT_CAPABILITIES;
if(capabilities == null)
throw new NullPointerException("Property capabilities must not be null");
long reserved = this.reservedSet ? this.reserved : DEFAULT_RESERVED;
return new OFFeaturesReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 313 |
public OFGroupAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 496 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 348 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 496 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 273 |
public OFAggregateStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadPropertyErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 301 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowMonitorFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 266 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 266 |
public OFAsyncConfigFailedErrorMsg readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 15
short errType = bb.readShort();
if(errType != (short) 0xf) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 303 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 273 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 273 |
public OFBsnDebugCounterDescStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 313 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 313 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 313 |
public OFGroupAdd readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 208 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 208 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 208 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 208 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 184 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 188 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 186 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 190 |
this.match=((OFMatchV1)this.getMatch()).createBuilder().setInPort(OFPort.ofShort(inPort.getPhysicalPortNumber())).build();
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) {
this.prependRewriteActions();
} else {
IPMapper.rewriteMatch(sw.getTenantId(), this.match);
// TODO: Verify why we have two send points... and if this is
// the right place for the match rewriting
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV1)this.match).getEthSrc().getBytes(), | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 119 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 119 |
BuilderWithParent(OFBucketVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedReasonSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedReasonSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedReasonSerializerVer13.java | 30 |
public class OFFlowRemovedReasonSerializerVer11 {
public final static byte IDLE_TIMEOUT_VAL = (byte) 0x0;
public final static byte HARD_TIMEOUT_VAL = (byte) 0x1;
public final static byte DELETE_VAL = (byte) 0x2;
public final static byte GROUP_DELETE_VAL = (byte) 0x3;
public static OFFlowRemovedReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowRemovedReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFFlowRemovedReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFFlowRemovedReason ofWireValue(byte val) {
switch(val) {
case IDLE_TIMEOUT_VAL:
return OFFlowRemovedReason.IDLE_TIMEOUT;
case HARD_TIMEOUT_VAL:
return OFFlowRemovedReason.HARD_TIMEOUT;
case DELETE_VAL:
return OFFlowRemovedReason.DELETE;
case GROUP_DELETE_VAL:
return OFFlowRemovedReason.GROUP_DELETE;
default:
throw new IllegalArgumentException("Illegal wire value for type OFFlowRemovedReason in version 1.1: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupTypeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupTypeSerializerVer14.java | 30 |
public class OFGroupTypeSerializerVer11 {
public final static byte ALL_VAL = (byte) 0x0;
public final static byte SELECT_VAL = (byte) 0x1;
public final static byte INDIRECT_VAL = (byte) 0x2;
public final static byte FF_VAL = (byte) 0x3;
public static OFGroupType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFGroupType e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFGroupType e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFGroupType ofWireValue(byte val) {
switch(val) {
case ALL_VAL:
return OFGroupType.ALL;
case SELECT_VAL:
return OFGroupType.SELECT;
case INDIRECT_VAL:
return OFGroupType.INDIRECT;
case FF_VAL:
return OFGroupType.FF;
default:
throw new IllegalArgumentException("Illegal wire value for type OFGroupType in version 1.1: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFlagsSerializerVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFlagsSerializerVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFlagsSerializerVer14.java | 43 |
public static Set<OFFlowModFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFFlowModFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFFlowModFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFFlowModFlags> ofWireValue(short val) {
EnumSet<OFFlowModFlags> set = EnumSet.noneOf(OFFlowModFlags.class);
if((val & SEND_FLOW_REM_VAL) != 0)
set.add(OFFlowModFlags.SEND_FLOW_REM);
if((val & CHECK_OVERLAP_VAL) != 0)
set.add(OFFlowModFlags.CHECK_OVERLAP);
if((val & RESET_COUNTS_VAL) != 0)
set.add(OFFlowModFlags.RESET_COUNTS); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 106 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public int getPriority() {
return priority;
}
@Override
public short getReason() {
return reason;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public Match getMatch() {
return match;
}
public OFFlowRemoved.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFFlowRemoved.Builder {
final OFFlowRemovedVer12 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmClassSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmClassSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmClassSerializerVer14.java | 30 |
public class OFOxmClassSerializerVer12 {
public final static short NXM_0_VAL = (short) 0x0;
public final static short NXM_1_VAL = (short) 0x1;
public final static short OPENFLOW_BASIC_VAL = (short) 0x8000;
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFOxmClass readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFOxmClass e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFOxmClass e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFOxmClass ofWireValue(short val) {
switch(val) {
case NXM_0_VAL:
return OFOxmClass.NXM_0;
case NXM_1_VAL:
return OFOxmClass.NXM_1;
case OPENFLOW_BASIC_VAL:
return OFOxmClass.OPENFLOW_BASIC;
case EXPERIMENTER_VAL:
return OFOxmClass.EXPERIMENTER;
default:
throw new IllegalArgumentException("Illegal wire value for type OFOxmClass in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterSerializerVer14.java | 30 |
public class OFBsnVlanCounterSerializerVer13 {
public final static byte BSN_VLAN_COUNTER_RX_BYTES_VAL = (byte) 0x0;
public final static byte BSN_VLAN_COUNTER_RX_PACKETS_VAL = (byte) 0x1;
public final static byte BSN_VLAN_COUNTER_TX_BYTES_VAL = (byte) 0x2;
public final static byte BSN_VLAN_COUNTER_TX_PACKETS_VAL = (byte) 0x3;
public static OFBsnVlanCounter readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnVlanCounter e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnVlanCounter e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnVlanCounter ofWireValue(byte val) {
switch(val) {
case BSN_VLAN_COUNTER_RX_BYTES_VAL:
return OFBsnVlanCounter.BSN_VLAN_COUNTER_RX_BYTES;
case BSN_VLAN_COUNTER_RX_PACKETS_VAL:
return OFBsnVlanCounter.BSN_VLAN_COUNTER_RX_PACKETS;
case BSN_VLAN_COUNTER_TX_BYTES_VAL:
return OFBsnVlanCounter.BSN_VLAN_COUNTER_TX_BYTES;
case BSN_VLAN_COUNTER_TX_PACKETS_VAL:
return OFBsnVlanCounter.BSN_VLAN_COUNTER_TX_PACKETS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnVlanCounter in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterSerializerVer14.java | 30 |
public class OFMeterSerializerVer13 {
public final static int MAX_VAL = (int) 0xffff0000;
public final static int SLOWPATH_VAL = (int) 0xfffffffd;
public final static int CONTROLLER_VAL = (int) 0xfffffffe;
public final static int ALL_VAL = (int) 0xffffffff;
public static OFMeter readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFMeter e) {
bb.writeInt(toWireValue(e));
}
public static void putTo(OFMeter e, PrimitiveSink sink) {
sink.putInt(toWireValue(e));
}
public static OFMeter ofWireValue(int val) {
switch(val) {
case MAX_VAL:
return OFMeter.MAX;
case SLOWPATH_VAL:
return OFMeter.SLOWPATH;
case CONTROLLER_VAL:
return OFMeter.CONTROLLER;
case ALL_VAL:
return OFMeter.ALL;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeter in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 475 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 468 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 468 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 6
byte type = bb.readByte();
if(type != (byte) 0x6)
throw new OFParseError("Wrong type: Expected=OFType.FEATURES_REPLY(6), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
DatapathId datapathId = DatapathId.of(bb.readLong());
long nBuffers = U32.f(bb.readInt());
short nTables = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3);
Set<OFCapabilities> capabilities = OFCapabilitiesSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 702 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 754 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 501 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 649 |
OFPortDescVer10 other = (OFPortDescVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (config == null) {
if (other.config != null)
return false;
} else if (!config.equals(other.config))
return false;
if (state == null) {
if (other.state != null)
return false;
} else if (!state.equals(other.state))
return false;
if (curr == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 618 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 618 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 618 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 618 |
return new OFBsnVportL2GreVer11(
flags,
portNo,
loopbackPortNo,
localMac,
nhMac,
srcIp,
dstIp,
dscp,
ttl,
vpn,
rateLimit,
ifName
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnVportL2Gre> {
@Override
public OFBsnVportL2Gre readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 64)
throw new OFParseError("Wrong length: Expected=64(64), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
Set<OFBsnVportL2GreFlags> flags = OFBsnVportL2GreFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 646 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 679 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 679 |
} else if (!tableId.equals(other.tableId))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + totalLen;
result = prime * result + ((reason == null) ? 0 : reason.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFStatsTypeSerializerVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsTypeSerializerVer14.java | 49 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFStatsType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFStatsType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFStatsType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFStatsType ofWireValue(short val) {
switch(val) {
case DESC_VAL:
return OFStatsType.DESC;
case FLOW_VAL:
return OFStatsType.FLOW;
case AGGREGATE_VAL:
return OFStatsType.AGGREGATE;
case TABLE_VAL:
return OFStatsType.TABLE;
case PORT_VAL:
return OFStatsType.PORT;
case QUEUE_VAL:
return OFStatsType.QUEUE;
case GROUP_VAL:
return OFStatsType.GROUP;
case GROUP_DESC_VAL:
return OFStatsType.GROUP_DESC;
case GROUP_FEATURES_VAL:
return OFStatsType.GROUP_FEATURES;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 207 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2fL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDelete.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDelete.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFBsnGentableEntryDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 207 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableEntryDelete.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2fL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableEntryDelete.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDelete.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
//
@Override
public OFBsnGentableEntryDelete build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 245 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 245 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 272)
throw new OFParseError("Wrong length: Expected=272(272), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x34L
int subtype = bb.readInt();
if(subtype != 0x34)
throw new OFParseError("Wrong subtype: Expected=0x34L(0x34L), got="+subtype);
String pipeline = ChannelUtils.readFixedLengthString(bb, 256); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 747 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 747 |
sink.putByte((byte) 0x4);
// fixed value property type = 4
sink.putByte((byte) 0x4);
// fixed value property length = 52
sink.putShort((short) 0x34);
sink.putLong(message.xid);
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0x2bL
sink.putInt(0x2b);
sink.putShort(message.convergenceStatus);
// skip pad (3 bytes)
message.portNo.putTo(sink);
sink.putInt(message.actorSysPriority);
message.actorSysMac.putTo(sink);
sink.putInt(message.actorPortPriority);
sink.putInt(message.actorPortNum);
sink.putInt(message.actorKey);
sink.putInt(message.partnerSysPriority);
message.partnerSysMac.putTo(sink);
sink.putInt(message.partnerPortPriority);
sink.putInt(message.partnerPortNum);
sink.putInt(message.partnerKey);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnLacpConvergenceNotifVer13> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 245 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 245 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 272)
throw new OFParseError("Wrong length: Expected=272(272), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x35L
int subtype = bb.readInt();
if(subtype != 0x35)
throw new OFParseError("Wrong subtype: Expected=0x35L(0x35L), got="+subtype);
String pipeline = ChannelUtils.readFixedLengthString(bb, 256); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvBucketVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvBucketVer14.java | 163 |
return new OFBsnTlvBucketVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvBucket> {
@Override
public OFBsnTlvBucket readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x40
short type = bb.readShort();
if(type != (short) 0x40)
throw new OFParseError("Wrong type: Expected=0x40(0x40), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFBsnTlv> value = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsEntryVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsEntryVer14.java | 185 |
return new OFBsnVlanCounterStatsEntryVer13(
vlanVid,
values
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnVlanCounterStatsEntry> {
@Override
public OFBsnVlanCounterStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int vlanVid = U16.f(bb.readShort());
// pad: 4 bytes
bb.skipBytes(4);
List<U64> values = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U64.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsEntryVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsEntryVer14.java | 185 |
return new OFBsnVrfCounterStatsEntryVer13(
vrf,
values
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnVrfCounterStatsEntry> {
@Override
public OFBsnVrfCounterStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
long vrf = U32.f(bb.readInt());
List<U64> values = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U64.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplyActionsMissVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplyActionsMissVer14.java | 163 |
return new OFTableFeaturePropApplyActionsMissVer13(
actionIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropApplyActionsMiss> {
@Override
public OFTableFeaturePropApplyActionsMiss readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x7
short type = bb.readShort();
if(type != (short) 0x7)
throw new OFParseError("Wrong type: Expected=0x7(0x7), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplyActionsVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplyActionsVer14.java | 163 |
return new OFTableFeaturePropApplyActionsVer13(
actionIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropApplyActions> {
@Override
public OFTableFeaturePropApplyActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x6
short type = bb.readShort();
if(type != (short) 0x6)
throw new OFParseError("Wrong type: Expected=0x6(0x6), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsMissVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsMissVer14.java | 163 |
return new OFTableFeaturePropInstructionsMissVer13(
instructionIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropInstructionsMiss> {
@Override
public OFTableFeaturePropInstructionsMiss readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFInstructionId> instructionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsVer14.java | 163 |
return new OFTableFeaturePropInstructionsVer13(
instructionIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropInstructions> {
@Override
public OFTableFeaturePropInstructions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFInstructionId> instructionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteActionsMissVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteActionsMissVer14.java | 163 |
return new OFTableFeaturePropWriteActionsMissVer13(
actionIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropWriteActionsMiss> {
@Override
public OFTableFeaturePropWriteActionsMiss readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x5
short type = bb.readShort();
if(type != (short) 0x5)
throw new OFParseError("Wrong type: Expected=0x5(0x5), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteActionsVer13.java | 163 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteActionsVer14.java | 163 |
return new OFTableFeaturePropWriteActionsVer13(
actionIds
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropWriteActions> {
@Override
public OFTableFeaturePropWriteActions readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x4
short type = bb.readShort();
if(type != (short) 0x4)
throw new OFParseError("Wrong type: Expected=0x4(0x4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 793 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 792 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 793 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 791 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 0
short command = bb.readByte();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 797 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
U64 cookieMask = U64.ofRaw(bb.readLong());
TableId tableId = TableId.readByte(bb);
// fixed value property command == 4
short command = bb.readByte();
if(command != (short) 0x4) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 337 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x40L
int subtype = bb.readInt();
if(subtype != 0x40)
throw new OFParseError("Wrong subtype: Expected=0x40L(0x40L), got="+subtype);
Set<OFBsnLuaUploadFlags> flags = OFBsnLuaUploadFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientStatsReplyVer13.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvCircuitIdVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvCircuitIdVer14.java | 162 |
return new OFBsnTlvCircuitIdVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvCircuitId> {
@Override
public OFBsnTlvCircuitId readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xe
short type = bb.readShort();
if(type != (short) 0xe)
throw new OFParseError("Wrong type: Expected=0xe(0xe), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
byte[] value = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvDataVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvDataVer14.java | 162 |
return new OFBsnTlvDataVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvData> {
@Override
public OFBsnTlvData readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x37
short type = bb.readShort();
if(type != (short) 0x37)
throw new OFParseError("Wrong type: Expected=0x37(0x37), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
byte[] value = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvNameVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvNameVer14.java | 162 |
return new OFBsnTlvNameVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvName> {
@Override
public OFBsnTlvName readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x34
short type = bb.readShort();
if(type != (short) 0x34)
throw new OFParseError("Wrong type: Expected=0x34(0x34), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
byte[] value = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModVer13.java | 140 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModVer13.java | 251 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModVer14.java | 140 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModVer14.java | 251 |
}
@Override
public OFType getType() {
return OFType.METER_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public int getCommand() {
return command;
}
@Override
public OFMeterMod.Builder setCommand(int command) {
this.command = command;
this.commandSet = true;
return this;
}
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterMod.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterMod.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getMeters() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 430 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 430 |
public OFAggregateStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 16
byte type = bb.readByte();
if(type != (byte) 0x10)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 56)
throw new OFParseError("Wrong length: Expected=56(56), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 115 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 115 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 115 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 115 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 115 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
List<OFBsnInterface> interfaces = this.interfacesSet ? this.interfaces : parentMessage.interfaces;
if(interfaces == null)
throw new NullPointerException("Property interfaces must not be null");
//
return new OFBsnGetInterfacesReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 556 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 561 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 561 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 561 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 561 |
StringBuilder b = new StringBuilder("OFDescStatsReplyVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("mfrDesc=").append(mfrDesc);
b.append(", ");
b.append("hwDesc=").append(hwDesc);
b.append(", ");
b.append("swDesc=").append(swDesc);
b.append(", ");
b.append("serialNum=").append(serialNum);
b.append(", ");
b.append("dpDesc=").append(dpDesc);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 226 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 226 |
public OFDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 16
byte type = bb.readByte();
if(type != (byte) 0x10)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 270 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 309 |
public OFPortStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 16
byte type = bb.readByte();
if(type != (byte) 0x10)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 4
short statsType = bb.readShort();
if(statsType != (short) 0x4) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 496 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 496 |
public OFAggregateStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 136)
throw new OFParseError("Wrong length: Expected=136(136), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnStatsRequestVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFExperimenterStatsRequestVer11.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsRequestFlagsSerializerVer11.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 226 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 226 |
public OFDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 570 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 570 |
StringBuilder b = new StringBuilder("OFFeaturesReplyVer11(");
b.append("xid=").append(xid);
b.append(", ");
b.append("datapathId=").append(datapathId);
b.append(", ");
b.append("nBuffers=").append(nBuffers);
b.append(", ");
b.append("nTables=").append(nTables);
b.append(", ");
b.append("capabilities=").append(capabilities);
b.append(", ");
b.append("reserved=").append(reserved);
b.append(", ");
b.append("ports=").append(ports);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 97 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 107 |
this.cookie = cookie;
this.packetCount = packetCount;
this.byteCount = byteCount;
this.match = match;
this.instructions = instructions;
}
// Accessors for OF message fields
@Override
public TableId getTableId() {
return tableId;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public int getPriority() {
return priority;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 309 |
public OFGroupStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 6
short statsType = bb.readShort();
if(statsType != (short) 0x6) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 841 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 973 |
if( applyActions != other.applyActions)
return false;
if( config != other.config)
return false;
if( maxEntries != other.maxEntries)
return false;
if( activeCount != other.activeCount)
return false;
if (lookupCount == null) {
if (other.lookupCount != null)
return false;
} else if (!lookupCount.equals(other.lookupCount))
return false;
if (matchedCount == null) {
if (other.matchedCount != null)
return false;
} else if (!matchedCount.equals(other.matchedCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + wildcards; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnStatsRequestVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterStatsRequestVer12.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsRequestFlagsSerializerVer12.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 226 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 226 |
public OFDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 309 |
public OFGroupStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 6
short statsType = bb.readShort();
if(statsType != (short) 0x6) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 426 |
throw new OFParseError("Wrong type: Expected=OFType.GET_ASYNC_REPLY(27), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
long packetInMaskEqualMaster = U32.f(bb.readInt());
long packetInMaskSlave = U32.f(bb.readInt());
long portStatusMaskEqualMaster = U32.f(bb.readInt());
long portStatusMaskSlave = U32.f(bb.readInt());
long flowRemovedMaskEqualMaster = U32.f(bb.readInt());
long flowRemovedMaskSlave = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 514 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 514 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 514 |
StringBuilder b = new StringBuilder("OFAsyncGetReplyVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("packetInMaskEqualMaster=").append(packetInMaskEqualMaster);
b.append(", ");
b.append("packetInMaskSlave=").append(packetInMaskSlave);
b.append(", ");
b.append("portStatusMaskEqualMaster=").append(portStatusMaskEqualMaster);
b.append(", ");
b.append("portStatusMaskSlave=").append(portStatusMaskSlave);
b.append(", ");
b.append("flowRemovedMaskEqualMaster=").append(flowRemovedMaskEqualMaster);
b.append(", ");
b.append("flowRemovedMaskSlave=").append(flowRemovedMaskSlave);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 115 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 115 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x39L;
}
@Override
public List<OFBsnControllerConnection> getConnections() {
return connections;
}
@Override
public OFBsnControllerConnectionsReply.Builder setConnections(List<OFBsnControllerConnection> connections) {
this.connections = connections;
this.connectionsSet = true;
return this;
}
@Override
public OFBsnControllerConnectionsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
List<OFBsnControllerConnection> connections = this.connectionsSet ? this.connections : parentMessage.connections;
if(connections == null)
throw new NullPointerException("Property connections must not be null");
//
return new OFBsnControllerConnectionsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 309 |
public OFBsnDebugCounterDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnStatsRequestVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientStatsRequestVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterStatsRequestVer13.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 226 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 226 |
public OFDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 564 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 564 |
StringBuilder b = new StringBuilder("OFFeaturesReplyVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("datapathId=").append(datapathId);
b.append(", ");
b.append("nBuffers=").append(nBuffers);
b.append(", ");
b.append("nTables=").append(nTables);
b.append(", ");
b.append("auxiliaryId=").append(auxiliaryId);
b.append(", ");
b.append("capabilities=").append(capabilities);
b.append(", ");
b.append("reserved=").append(reserved);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 504 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 504 |
StringBuilder b = new StringBuilder("OFGroupStatsEntryVer13(");
b.append("group=").append(group);
b.append(", ");
b.append("refCount=").append(refCount);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("bucketStats=").append(bucketStats);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 492 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 492 |
StringBuilder b = new StringBuilder("OFMeterStatsVer13(");
b.append("meterId=").append(meterId);
b.append(", ");
b.append("flowCount=").append(flowCount);
b.append(", ");
b.append("packetInCount=").append(packetInCount);
b.append(", ");
b.append("byteInCount=").append(byteInCount);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("bandStats=").append(bandStats);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 506 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 506 |
StringBuilder b = new StringBuilder("OFTableFeaturesVer13(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("metadataMatch=").append(metadataMatch);
b.append(", ");
b.append("metadataWrite=").append(metadataWrite);
b.append(", ");
b.append("config=").append(config);
b.append(", ");
b.append("maxEntries=").append(maxEntries);
b.append(", ");
b.append("properties=").append(properties);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 309 |
public OFBsnDebugCounterDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnStatsRequestVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterStatsRequestVer14.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsRequestFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsRequestVer14.java | 226 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 226 |
public OFDescStatsRequest readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 203 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFFlowStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFFlowStatsEntry> getEntries() {
return entries;
}
@Override
public OFFlowStatsReply.Builder setEntries(List<OFFlowStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFFlowStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 125 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 205 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortStatsEntry> getEntries() {
return entries;
}
@Override
public OFPortStatsReply.Builder setEntries(List<OFPortStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFPortStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 113 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueuePropMinRateVer10.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueuePropMinRateVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropMinRateVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropMinRateVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropMinRateVer14.java | 154 |
return new OFQueuePropMinRateVer10(
rate
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFQueuePropMinRate> {
@Override
public OFQueuePropMinRate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
int rate = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 203 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFQueueStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFQueueStatsEntry> getEntries() {
return entries;
}
@Override
public OFQueueStatsReply.Builder setEntries(List<OFQueueStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFQueueStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 203 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableStatsEntry> getEntries() {
return entries;
}
@Override
public OFTableStatsReply.Builder setEntries(List<OFTableStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFTableStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupDescStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupDescStatsReply.Builder setEntries(List<OFGroupDescStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFGroupDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 203 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFGroupStatsEntry> getEntries() {
return entries;
}
@Override
public OFGroupStatsReply.Builder setEntries(List<OFGroupStatsEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFGroupStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 113 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropMaxRateVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropMaxRateVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropMaxRateVer14.java | 154 |
return new OFQueuePropMaxRateVer12(
rate
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFQueuePropMaxRate> {
@Override
public OFQueuePropMaxRate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=0x2(0x2), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
int rate = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 113 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfigStatsReply.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterConfigStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfigStatsReply.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFMeterConfigStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.METER_MOD_FAILED;
}
@Override
public OFMeterModFailedCode getCode() {
return code;
}
@Override
public OFMeterModFailedErrorMsg.Builder setCode(OFMeterModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFMeterModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFMeterModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterStats> getEntries() {
return entries;
}
@Override
public OFMeterStatsReply.Builder setEntries(List<OFMeterStats> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFMeterStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFMeterStats> getEntries() {
return entries;
}
@Override
public OFMeterStatsReply.Builder setEntries(List<OFMeterStats> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFMeterStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortDesc> getEntries() {
return entries;
}
@Override
public OFPortDescStatsReply.Builder setEntries(List<OFPortDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFPortDesc> getEntries() {
return entries;
}
@Override
public OFPortDescStatsReply.Builder setEntries(List<OFPortDesc> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFPortDescStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_FEATURES_FAILED;
}
@Override
public OFTableFeaturesFailedCode getCode() {
return code;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setCode(OFTableFeaturesFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableFeaturesFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsReply.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsReply.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFTableFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 203 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsRequest.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFTableFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 124 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public List<OFTableFeatures> getEntries() {
return entries;
}
@Override
public OFTableFeaturesStatsRequest.Builder setEntries(List<OFTableFeatures> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
//
@Override
public OFTableFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFAsyncConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ASYNC_CONFIG_FAILED;
}
@Override
public OFAsyncConfigFailedCode getCode() {
return code;
}
@Override
public OFAsyncConfigFailedErrorMsg.Builder setCode(OFAsyncConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFAsyncConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFAsyncConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBadPropertyErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadPropertyErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadPropertyErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_PROPERTY;
}
@Override
public OFBadPropertyCode getCode() {
return code;
}
@Override
public OFBadPropertyErrorMsg.Builder setCode(OFBadPropertyCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadPropertyErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadPropertyErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBundleFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBundleFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BUNDLE_FAILED;
}
@Override
public OFBundleFailedCode getCode() {
return code;
}
@Override
public OFBundleFailedErrorMsg.Builder setCode(OFBundleFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBundleFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBundleFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowMonitorFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowMonitorFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowMonitorFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MONITOR_FAILED;
}
@Override
public OFFlowMonitorFailedCode getCode() {
return code;
}
@Override
public OFFlowMonitorFailedErrorMsg.Builder setCode(OFFlowMonitorFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowMonitorFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowMonitorFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.METER_MOD_FAILED;
}
@Override
public OFMeterModFailedCode getCode() {
return code;
}
@Override
public OFMeterModFailedErrorMsg.Builder setCode(OFMeterModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFMeterModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFMeterModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_FEATURES_FAILED;
}
@Override
public OFTableFeaturesFailedCode getCode() {
return code;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setCode(OFTableFeaturesFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableFeaturesFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 192 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXPort.java | 39 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXPort.java | 41 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXPort.java | 41 |
Logger log = LogManager.getLogger(RemoveOVXPort.class.getName());
@Override
public JSONRPC2Response process(final Map<String, Object> params) {
JSONRPC2Response resp = null;
try {
final Number tenantId = HandlerUtils.<Number>fetchField(
TenantHandler.TENANT, params, true, null);
final Number dpid = HandlerUtils.<Number>fetchField(
TenantHandler.VDPID, params, true, null);
final Number port = HandlerUtils.<Number>fetchField(
TenantHandler.VPORT, params, true, null);
HandlerUtils.isValidTenantId(tenantId.intValue());
HandlerUtils
.isValidOVXSwitch(tenantId.intValue(), dpid.longValue());
HandlerUtils.isValidOVXPort(tenantId.intValue(), dpid.longValue(),
port.shortValue());
final OVXMap map = OVXMap.getInstance();
final OVXNetwork virtualNetwork = map.getVirtualNetwork(tenantId
.intValue());
virtualNetwork.removePort(dpid.longValue(), port.shortValue()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 241 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 241 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 241 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 241 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 241 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xfL
int subtype = bb.readInt();
if(subtype != 0xf)
throw new OFParseError("Wrong subtype: Expected=0xfL(0xfL), got="+subtype);
OFBsnVport vport = OFBsnVportVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 40 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 40 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 40 |
private final static Set<OFBsnVportL2GreFlags> DEFAULT_FLAGS = ImmutableSet.<OFBsnVportL2GreFlags>of();
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static OFPort DEFAULT_LOOPBACK_PORT_NO = OFPort.ANY;
private final static MacAddress DEFAULT_LOCAL_MAC = MacAddress.NONE;
private final static MacAddress DEFAULT_NH_MAC = MacAddress.NONE;
private final static IPv4Address DEFAULT_SRC_IP = IPv4Address.NONE;
private final static IPv4Address DEFAULT_DST_IP = IPv4Address.NONE;
private final static short DEFAULT_DSCP = (short) 0x0;
private final static short DEFAULT_TTL = (short) 0x0;
private final static long DEFAULT_VPN = 0x0L;
private final static long DEFAULT_RATE_LIMIT = 0x0L;
private final static String DEFAULT_IF_NAME = "";
// OF message fields
private final Set<OFBsnVportL2GreFlags> flags;
private final OFPort portNo;
private final OFPort loopbackPortNo;
private final MacAddress localMac;
private final MacAddress nhMac;
private final IPv4Address srcIp;
private final IPv4Address dstIp;
private final short dscp;
private final short ttl;
private final long vpn;
private final long rateLimit;
private final String ifName;
//
// Immutable default instance
final static OFBsnVportL2GreVer10 DEFAULT = new OFBsnVportL2GreVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 202 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 403 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 210 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 419 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 215 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 430 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 215 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 430 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 215 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 430 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowRemoved.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public OFFlowRemoved.Builder setCookie(U64 cookie) {
this.cookie = cookie;
this.cookieSet = true;
return this;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFFlowRemoved.Builder setPriority(int priority) {
this.priority = priority;
this.prioritySet = true;
return this;
}
@Override
public short getReason() {
return reason;
}
@Override
public OFFlowRemoved.Builder setReason(short reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 168 |
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 327 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 359 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 176 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 343 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 359 |
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPacketIn.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPacketIn.Builder setBufferId(OFBufferId bufferId) {
this.bufferId = bufferId;
this.bufferIdSet = true;
return this;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketIn.Builder setTotalLen(int totalLen) {
this.totalLen = totalLen;
this.totalLenSet = true;
return this;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public OFPacketIn.Builder setReason(OFPacketInReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public TableId getTableId()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketQueueVer10.java | 208 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketQueueVer11.java | 208 |
return new OFPacketQueueVer10(
queueId,
properties
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFPacketQueue> {
@Override
public OFPacketQueue readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
long queueId = U32.f(bb.readInt());
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
List<OFQueueProp> properties = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFQueuePropVer10.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 118 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 206 |
@Override
public OFBsnControllerConnectionState getState() {
return state;
}
@Override
public OFBsnControllerConnection.Builder setState(OFBsnControllerConnectionState state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFBsnControllerConnection.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnControllerConnection.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public String getUri() {
return uri;
}
@Override
public OFBsnControllerConnection.Builder setUri(String uri) {
this.uri = uri;
this.uriSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnControllerConnection build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 197 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnGentableDescStatsEntry build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 286 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 286 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x3fL
int subtype = bb.readInt();
if(subtype != 0x3f)
throw new OFParseError("Wrong subtype: Expected=0x3fL(0x3fL), got="+subtype);
OFBsnLoglevel loglevel = OFBsnLoglevelSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterSerializerVer13.java | 136 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterSerializerVer14.java | 136 |
throw new IllegalArgumentException("Illegal wire value for type OFBsnPortCounter in version 1.3: " + val);
}
}
public static byte toWireValue(OFBsnPortCounter e) {
switch(e) {
case BSN_PORT_COUNTER_RX_BYTES:
return BSN_PORT_COUNTER_RX_BYTES_VAL;
case BSN_PORT_COUNTER_RX_PACKETS_UNICAST:
return BSN_PORT_COUNTER_RX_PACKETS_UNICAST_VAL;
case BSN_PORT_COUNTER_RX_PACKETS_BROADCAST:
return BSN_PORT_COUNTER_RX_PACKETS_BROADCAST_VAL;
case BSN_PORT_COUNTER_RX_PACKETS_MULTICAST:
return BSN_PORT_COUNTER_RX_PACKETS_MULTICAST_VAL;
case BSN_PORT_COUNTER_RX_DROPPED:
return BSN_PORT_COUNTER_RX_DROPPED_VAL;
case BSN_PORT_COUNTER_RX_ERRORS:
return BSN_PORT_COUNTER_RX_ERRORS_VAL;
case BSN_PORT_COUNTER_TX_BYTES:
return BSN_PORT_COUNTER_TX_BYTES_VAL;
case BSN_PORT_COUNTER_TX_PACKETS_UNICAST:
return BSN_PORT_COUNTER_TX_PACKETS_UNICAST_VAL;
case BSN_PORT_COUNTER_TX_PACKETS_BROADCAST:
return BSN_PORT_COUNTER_TX_PACKETS_BROADCAST_VAL;
case BSN_PORT_COUNTER_TX_PACKETS_MULTICAST:
return BSN_PORT_COUNTER_TX_PACKETS_MULTICAST_VAL;
case BSN_PORT_COUNTER_TX_DROPPED:
return BSN_PORT_COUNTER_TX_DROPPED_VAL;
case BSN_PORT_COUNTER_TX_ERRORS:
return BSN_PORT_COUNTER_TX_ERRORS_VAL;
case BSN_PORT_COUNTER_RX_RUNTS:
return BSN_PORT_COUNTER_RX_RUNTS_VAL;
case BSN_PORT_COUNTER_RX_GIANTS:
return BSN_PORT_COUNTER_RX_GIANTS_VAL;
case BSN_PORT_COUNTER_RX_CRC_ERRORS:
return BSN_PORT_COUNTER_RX_CRC_ERRORS_VAL;
case BSN_PORT_COUNTER_RX_ALIGNMENT_ERRORS:
return BSN_PORT_COUNTER_RX_ALIGNMENT_ERRORS_VAL;
case BSN_PORT_COUNTER_RX_SYMBOL_ERRORS:
return BSN_PORT_COUNTER_RX_SYMBOL_ERRORS_VAL;
case BSN_PORT_COUNTER_RX_PAUSE_INPUT:
return BSN_PORT_COUNTER_RX_PAUSE_INPUT_VAL;
case BSN_PORT_COUNTER_TX_COLLISIONS:
return BSN_PORT_COUNTER_TX_COLLISIONS_VAL;
case BSN_PORT_COUNTER_TX_LATE_COLLISIONS:
return BSN_PORT_COUNTER_TX_LATE_COLLISIONS_VAL;
case BSN_PORT_COUNTER_TX_DEFERRED:
return BSN_PORT_COUNTER_TX_DEFERRED_VAL;
case BSN_PORT_COUNTER_TX_PAUSE_OUTPUT:
return BSN_PORT_COUNTER_TX_PAUSE_OUTPUT_VAL;
case BSN_PORT_COUNTER_RX_PACKETS:
return BSN_PORT_COUNTER_RX_PACKETS_VAL;
case BSN_PORT_COUNTER_TX_PACKETS:
return BSN_PORT_COUNTER_TX_PACKETS_VAL;
case BSN_PORT_COUNTER_RX_LENGTH_ERRORS:
return BSN_PORT_COUNTER_RX_LENGTH_ERRORS_VAL;
case BSN_PORT_COUNTER_RX_OVERFLOW_ERRORS:
return BSN_PORT_COUNTER_RX_OVERFLOW_ERRORS_VAL;
case BSN_PORT_COUNTER_TX_CARRIER_ERRORS:
return BSN_PORT_COUNTER_TX_CARRIER_ERRORS_VAL;
case BSN_PORT_COUNTER_RX_PACKETS_BAD_VLAN:
return BSN_PORT_COUNTER_RX_PACKETS_BAD_VLAN_VAL;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBsnPortCounter in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsEntryVer13.java | 192 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsEntryVer14.java | 192 |
return new OFBsnPortCounterStatsEntryVer13(
portNo,
values
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnPortCounterStatsEntry> {
@Override
public OFBsnPortCounterStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
OFPort portNo = OFPort.read4Bytes(bb);
List<U64> values = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U64.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 159 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 159 |
return new OFMeterBandDscpRemarkVer13(
rate,
burstSize,
precLevel
);
}
}
static class Builder implements OFMeterBandDscpRemark.Builder {
// OF message fields
private boolean rateSet;
private long rate;
private boolean burstSizeSet;
private long burstSize;
private boolean precLevelSet;
private short precLevel;
@Override
public int getType() {
return 0x2;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDscpRemark.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDscpRemark.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public short getPrecLevel() {
return precLevel;
}
@Override
public OFMeterBandDscpRemark.Builder setPrecLevel(short precLevel) {
this.precLevel = precLevel;
this.precLevelSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 159 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 159 |
return new OFMeterBandExperimenterVer13(
rate,
burstSize,
experimenter
);
}
}
static class Builder implements OFMeterBandExperimenter.Builder {
// OF message fields
private boolean rateSet;
private long rate;
private boolean burstSizeSet;
private long burstSize;
private boolean experimenterSet;
private long experimenter;
@Override
public int getType() {
return 0xffff;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandExperimenter.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandExperimenter.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFMeterBandExperimenter.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 118 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 206 |
@Override
public OFBsnControllerConnectionState getState() {
return state;
}
@Override
public OFBsnControllerConnection.Builder setState(OFBsnControllerConnectionState state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFBsnControllerConnection.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnControllerConnection.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public String getUri() {
return uri;
}
@Override
public OFBsnControllerConnection.Builder setUri(String uri) {
this.uri = uri;
this.uriSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnControllerConnection build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 197 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnGentableDescStatsEntry build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellStatusVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleReplyVer10.java | 236 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleRequestVer10.java | 236 |
public OFBsnBwClearDataReply readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 120 |
BuilderWithParent(OFBsnInterfaceVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnStatsReplyVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFExperimenterStatsReplyVer11.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsReplyFlagsSerializerVer11.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnStatsReplyVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterStatsReplyVer12.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsReplyFlagsSerializerVer12.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 114 |
BuilderWithParent(OFBsnControllerConnectionVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFBsnControllerConnectionState getState() {
return state;
}
@Override
public OFBsnControllerConnection.Builder setState(OFBsnControllerConnectionState state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFBsnControllerConnection.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnControllerConnection.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public String getUri() {
return uri;
}
@Override
public OFBsnControllerConnection.Builder setUri(String uri) {
this.uri = uri;
this.uriSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 438 |
OFBsnGentableClearReplyVer13 other = (OFBsnGentableClearReplyVer13) obj;
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( deletedCount != other.deletedCount)
return false;
if( errorCount != other.errorCount)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (deletedCount ^ (deletedCount >>> 32));
result = prime * (int) (errorCount ^ (errorCount >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 109 |
BuilderWithParent(OFBsnGentableDescStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 459 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 459 |
bb.writeByte((byte) 0x4);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x2eL
bb.writeInt(0x2e);
message.tableId.write2Bytes(bb);
// keyLength is length indicator for key, will be
// udpated when key has been written
int keyLengthIndex = bb.writerIndex();
bb.writeShort(0);
message.checksum.write16Bytes(bb);
int keyStartIndex = bb.writerIndex();
ChannelUtils.writeList(bb, message.key);
// update field length member keyLength
int keyLength = bb.writerIndex() - keyStartIndex;
bb.setShort(keyLengthIndex, keyLength);
ChannelUtils.writeList(bb, message.value);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnGentableEntryAddVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x42L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnLuaCommandReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x41L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnLuaCommandRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaNotification.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x43L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaNotification.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaNotification build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFBsnLuaNotificationVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterStatsReplyVer13.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 522 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 576 |
OFQueueStatsEntryVer13 other = (OFQueueStatsEntryVer13) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( queueId != other.queueId)
return false;
if (txBytes == null) {
if (other.txBytes != null)
return false;
} else if (!txBytes.equals(other.txBytes))
return false;
if (txPackets == null) {
if (other.txPackets != null)
return false;
} else if (!txPackets.equals(other.txPackets))
return false;
if (txErrors == null) {
if (other.txErrors != null)
return false;
} else if (!txErrors.equals(other.txErrors))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnStatsReplyVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterStatsReplyVer14.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
OFStatsReplyFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/link/OVXLink.java | 570 |
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 219 |
log.warn("Timeout interrupted; might be a problem if you are running POX.");
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
for (OFOxm<?> ofOxm : myList) {
if (ofOxm instanceof OFOxmInPort) continue;
System.out.println(ofOxm.getMatchField().id.toString());
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
OFOxmList oxmList = new OFOxmList(oxmMap);
System.out.println(myList.toString());
System.out.println(oxmList.toString());
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 220 |
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 335 |
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
for (OFOxm<?> ofOxm : myList) {
if (ofOxm instanceof OFOxmInPort) continue;
System.out.println(ofOxm.getMatchField().id.toString());
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
OFOxmList oxmList = new OFOxmList(oxmMap);
System.out.println(myList.toString());
System.out.println(oxmList.toString());
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
}
private boolean isActionViolates(List<OFAction> origActions) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 116 |
BuilderWithParent(OFActionBsnMirrorVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x17L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnBwEnableSetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 182 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 182 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 182 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
//
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
List<OFBsnInterface> interfaces = this.interfacesSet ? this.interfaces : DEFAULT_INTERFACES;
if(interfaces == null)
throw new NullPointerException("Property interfaces must not be null");
return new OFBsnGetInterfacesReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 123 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 205 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 205 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 205 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnPduRxTimeout.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x23L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPduRxTimeout.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public OFBsnPduRxTimeout.Builder setSlotNum(short slotNum) {
this.slotNum = slotNum;
this.slotNumSet = true;
return this;
}
//
@Override
public OFBsnPduRxTimeout build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortCreateReply.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortCreateReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 274 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 277 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 274 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 274 |
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 17
byte type = bb.readByte();
if(type != (byte) 0x11)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortConfigSerializerVer10.java | 41 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortConfigSerializerVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortConfigSerializerVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortConfigSerializerVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortConfigSerializerVer14.java | 38 |
public final static int NO_FWD_VAL = 0x20;
public final static int NO_PACKET_IN_VAL = 0x40;
public final static int BSN_MIRROR_DEST_VAL = (int) 0x80000000;
public static Set<OFPortConfig> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortConfig> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortConfig> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortConfig> ofWireValue(int val) {
EnumSet<OFPortConfig> set = EnumSet.noneOf(OFPortConfig.class);
if((val & PORT_DOWN_VAL) != 0)
set.add(OFPortConfig.PORT_DOWN);
if((val & NO_STP_VAL) != 0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 161 |
return new OFGroupDescStatsEntryVer11(
groupType,
group,
buckets
);
}
}
static class Builder implements OFGroupDescStatsEntry.Builder {
// OF message fields
private boolean groupTypeSet;
private OFGroupType groupType;
private boolean groupSet;
private OFGroup group;
private boolean bucketsSet;
private List<OFBucket> buckets;
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 161 |
return new OFPacketQueueVer12(
queueId,
port,
properties
);
}
}
static class Builder implements OFPacketQueue.Builder {
// OF message fields
private boolean queueIdSet;
private long queueId;
private boolean portSet;
private OFPort port;
private boolean propertiesSet;
private List<OFQueueProp> properties;
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnArpIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3cL;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnArpIdle.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnArpIdle.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public OFBsnArpIdle build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnArpIdle.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3cL;
}
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnArpIdle.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnArpIdle.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
//
@Override
public OFBsnArpIdle build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 182 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x39L;
}
@Override
public List<OFBsnControllerConnection> getConnections() {
return connections;
}
@Override
public OFBsnControllerConnectionsReply.Builder setConnections(List<OFBsnControllerConnection> connections) {
this.connections = connections;
this.connectionsSet = true;
return this;
}
//
@Override
public OFBsnControllerConnectionsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
List<OFBsnControllerConnection> connections = this.connectionsSet ? this.connections : DEFAULT_CONNECTIONS;
if(connections == null)
throw new NullPointerException("Property connections must not be null");
return new OFBsnControllerConnectionsReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x25L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x25L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnFlowIdleEnableSetReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnFlowIdleEnableSetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 118 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x32L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnGentableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 118 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x32L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
//
@Override
public OFBsnGentableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 121 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLog.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3fL;
}
@Override
public OFBsnLoglevel getLoglevel() {
return loglevel;
}
@Override
public OFBsnLog.Builder setLoglevel(OFBsnLoglevel loglevel) {
this.loglevel = loglevel;
this.loglevelSet = true;
return this;
}
@Override
public String getData() {
return data;
}
@Override
public OFBsnLog.Builder setData(String data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLog build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 121 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLog.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3fL;
}
@Override
public OFBsnLoglevel getLoglevel() {
return loglevel;
}
@Override
public OFBsnLog.Builder setLoglevel(OFBsnLoglevel loglevel) {
this.loglevel = loglevel;
this.loglevelSet = true;
return this;
}
@Override
public String getData() {
return data;
}
@Override
public OFBsnLog.Builder setData(String data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLog build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 200 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3bL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 120 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3bL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetAuxCxnsReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnSetAuxCxnsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetLacpReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFBsnSetLacpReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetLacpReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetLacpReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnSetLacpReply.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
//
@Override
public OFBsnSetLacpReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 205 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3dL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableSetBucketsSize.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnTableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public OFBsnTableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 205 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 123 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableSetBucketsSize.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3dL;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableSetBucketsSize.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnTableSetBucketsSize.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
//
@Override
public OFBsnTableSetBucketsSize build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 156 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 156 |
return new OFMeterConfigVer13(
flags,
meterId,
entries
);
}
}
static class Builder implements OFMeterConfig.Builder {
// OF message fields
private boolean flagsSet;
private int flags;
private boolean meterIdSet;
private long meterId;
private boolean entriesSet;
private List<OFMeterBand> entries;
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterConfig.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfig.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfig.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/link/OVXLink.java | 571 |
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 335 |
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>();
oxmMap.put(MatchFields.IN_PORT, oxmInPort);
for (OFOxm<?> ofOxm : myList) {
if (ofOxm instanceof OFOxmInPort) continue;
System.out.println(ofOxm.getMatchField().id.toString());
oxmMap.put(ofOxm.getMatchField().id, ofOxm);
}
OFOxmList oxmList = new OFOxmList(oxmMap);
System.out.println(myList.toString());
System.out.println(oxmList.toString());
newMatch = OVXFactoryInst.myFactory.buildMatchV3().setOxmList(oxmList).build();
return newMatch;
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 378 |
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 378 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 378 |
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 378 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 378 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadPropertyErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowMonitorFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 378 |
OFBadActionErrorMsgVer10 other = (OFBadActionErrorMsgVer10) obj;
if( xid != other.xid)
return false;
if (code == null) {
if (other.code != null)
return false;
} else if (!code.equals(other.code))
return false;
if (data == null) {
if (other.data != null)
return false;
} else if (!data.equals(other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((code == null) ? 0 : code.hashCode());
result = prime * result + ((data == null) ? 0 : data.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFlagsSerializerVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFlagsSerializerVer12.java | 38 |
public final static short EMERG_VAL = (short) 0x4;
public static Set<OFFlowModFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFFlowModFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFFlowModFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFFlowModFlags> ofWireValue(short val) {
EnumSet<OFFlowModFlags> set = EnumSet.noneOf(OFFlowModFlags.class);
if((val & SEND_FLOW_REM_VAL) != 0)
set.add(OFFlowModFlags.SEND_FLOW_REM);
if((val & CHECK_OVERLAP_VAL) != 0)
set.add(OFFlowModFlags.CHECK_OVERLAP);
if((val & EMERG_VAL) != 0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 385 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 392 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 385 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 385 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 436 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 393 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 436 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 390 |
OFFlowStatsReplyVer10 other = (OFFlowStatsReplyVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (entries == null) {
if (other.entries != null)
return false;
} else if (!entries.equals(other.entries))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((entries == null) ? 0 : entries.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 386 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 388 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 388 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 429 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsRequestVer13.java | 434 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 388 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 429 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 388 |
OFPortStatsRequestVer10 other = (OFPortStatsRequestVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 355 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 355 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 355 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 355 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 360 |
OFPortStatusVer10 other = (OFPortStatusVer10) obj;
if( xid != other.xid)
return false;
if (reason == null) {
if (other.reason != null)
return false;
} else if (!reason.equals(other.reason))
return false;
if (desc == null) {
if (other.desc != null)
return false;
} else if (!desc.equals(other.desc))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((reason == null) ? 0 : reason.hashCode());
result = prime * result + ((desc == null) ? 0 : desc.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 366 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 366 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 366 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 366 |
OFQueueGetConfigReplyVer10 other = (OFQueueGetConfigReplyVer10) obj;
if( xid != other.xid)
return false;
if (port == null) {
if (other.port != null)
return false;
} else if (!port.equals(other.port))
return false;
if (queues == null) {
if (other.queues != null)
return false;
} else if (!queues.equals(other.queues))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((port == null) ? 0 : port.hashCode());
result = prime * result + ((queues == null) ? 0 : queues.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 722 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 843 |
if( wildcards != other.wildcards)
return false;
if( maxEntries != other.maxEntries)
return false;
if( activeCount != other.activeCount)
return false;
if (lookupCount == null) {
if (other.lookupCount != null)
return false;
} else if (!lookupCount.equals(other.lookupCount))
return false;
if (matchedCount == null) {
if (other.matchedCount != null)
return false;
} else if (!matchedCount.equals(other.matchedCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + wildcards;
result = prime * (int) (maxEntries ^ (maxEntries >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 388 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 388 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 388 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 388 |
OFGroupStatsRequestVer11 other = (OFGroupStatsRequestVer11) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((group == null) ? 0 : group.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFStatsTypeSerializerVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsTypeSerializerVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsTypeSerializerVer14.java | 49 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFStatsType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFStatsType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFStatsType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFStatsType ofWireValue(short val) {
switch(val) {
case DESC_VAL:
return OFStatsType.DESC;
case FLOW_VAL:
return OFStatsType.FLOW;
case AGGREGATE_VAL:
return OFStatsType.AGGREGATE;
case TABLE_VAL:
return OFStatsType.TABLE;
case PORT_VAL:
return OFStatsType.PORT;
case QUEUE_VAL:
return OFStatsType.QUEUE;
case GROUP_VAL:
return OFStatsType.GROUP;
case GROUP_DESC_VAL:
return OFStatsType.GROUP_DESC;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpOpMasked build() {
ArpOpcode value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpShaMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpSpaMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpThaMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpTpaMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30702L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnInPorts128Masked build() {
OFBitMask128 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnInPorts512Masked build() {
OFBitMask512 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x32502L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL2CacheHitMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30d08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL3DstClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL3SrcClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnLagIdMasked build() {
LagId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnTcpFlagsMasked build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf0Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf1Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf2Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf3Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf4Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf5Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf6Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf7Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnVrfMasked build() {
VRF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmEthDstMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmEthSrcMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmEthTypeMasked build() {
EthType value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv4CodeMasked build() {
ICMPv4Code value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv4TypeMasked build() {
ICMPv4Type value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv6CodeMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv6TypeMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmInPhyPortMasked build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmInPortMasked build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpDscpMasked build() {
IpDscp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpEcnMasked build() {
IpEcn value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpProtoMasked build() {
IpProtocol value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv4DstMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv4SrcMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6DstMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6FlabelMasked build() {
IPv6FlowLabel value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6NdSllMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6NdTargetMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6NdTllMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6SrcMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmMetadataMasked build() {
OFMetadata value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmMplsLabelMasked build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmMplsTcMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmSctpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmSctpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTcpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTcpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTunnelIpv4DstMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTunnelIpv4SrcMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmUdpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmUdpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmVlanPcpMasked build() {
VlanPcp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 197 |
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmVlanVidMasked build() {
OFVlanVidMatch value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 335 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 335 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 335 |
OFPacketQueueVer12 other = (OFPacketQueueVer12) obj;
if( queueId != other.queueId)
return false;
if (port == null) {
if (other.port != null)
return false;
} else if (!port.equals(other.port))
return false;
if (properties == null) {
if (other.properties != null)
return false;
} else if (!properties.equals(other.properties))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (queueId ^ (queueId >>> 32));
result = prime * result + ((port == null) ? 0 : port.hashCode());
result = prime * result + ((properties == null) ? 0 : properties.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 355 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 355 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 355 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 355 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 355 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 355 |
OFRoleReplyVer12 other = (OFRoleReplyVer12) obj;
if( xid != other.xid)
return false;
if (role == null) {
if (other.role != null)
return false;
} else if (!role.equals(other.role))
return false;
if (generationId == null) {
if (other.generationId != null)
return false;
} else if (!generationId.equals(other.generationId))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((role == null) ? 0 : role.hashCode());
result = prime * result + ((generationId == null) ? 0 : generationId.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 429 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 425 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 429 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 425 |
OFBsnFlowChecksumBucketStatsRequestVer13 other = (OFBsnFlowChecksumBucketStatsRequestVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 403 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 403 |
OFBsnGentableEntryDeleteVer13 other = (OFBsnGentableEntryDeleteVer13) obj;
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((key == null) ? 0 : key.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 309 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 309 |
OFBsnGentableStatsEntryVer13 other = (OFBsnGentableStatsEntryVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( entryCount != other.entryCount)
return false;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (entryCount ^ (entryCount >>> 32));
result = prime * result + ((checksum == null) ? 0 : checksum.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 401 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 401 |
OFBsnLogVer13 other = (OFBsnLogVer13) obj;
if( xid != other.xid)
return false;
if (loglevel == null) {
if (other.loglevel != null)
return false;
} else if (!loglevel.equals(other.loglevel))
return false;
if (data == null) {
if (other.data != null)
return false;
} else if (!data.equals(other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((loglevel == null) ? 0 : loglevel.hashCode());
result = prime * result + ((data == null) ? 0 : data.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 379 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 379 |
OFMeterFeaturesStatsReplyVer13 other = (OFMeterFeaturesStatsReplyVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (features == null) {
if (other.features != null)
return false;
} else if (!features.equals(other.features))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((features == null) ? 0 : features.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpOpMasked build() {
ArpOpcode value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpShaMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpSpaMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpThaMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpTpaMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30702L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInPorts128Masked build() {
OFBitMask128 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInPorts512Masked build() {
OFBitMask512 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32d0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInnerEthDstMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32f0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInnerEthSrcMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32502L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL2CacheHitMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30d08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL3DstClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL3SrcClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnLagIdMasked build() {
LagId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnTcpFlagsMasked build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf0Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf1Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf2Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf3Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf4Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf5Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf6Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf7Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnVrfMasked build() {
VRF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32b08L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmEthDstMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmEthSrcMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmEthTypeMasked build() {
EthType value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv4CodeMasked build() {
ICMPv4Code value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv4TypeMasked build() {
ICMPv4Type value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv6CodeMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv6TypeMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmInPhyPortMasked build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmInPortMasked build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpDscpMasked build() {
IpDscp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpEcnMasked build() {
IpEcn value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpProtoMasked build() {
IpProtocol value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv4DstMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv4SrcMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6DstMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80004f04L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6ExthdrMasked build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6FlabelMasked build() {
IPv6FlowLabel value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6NdSllMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6NdTargetMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6NdTllMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6SrcMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMetadataMasked build() {
OFMetadata value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80004902L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBosMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmMplsBosMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMplsBosMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMplsLabelMasked build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMplsTcMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmSctpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmSctpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTcpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTcpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80004d10L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelIdMasked.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U64 getMask() {
return mask;
}
@Override
public OFOxmTunnelIdMasked.Builder setMask(U64 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTunnelIdMasked build() {
U64 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTunnelIpv4DstMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTunnelIpv4SrcMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmUdpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmUdpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmVlanPcpMasked build() {
VlanPcp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmVlanVidMasked build() {
OFVlanVidMatch value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpOpMasked build() {
ArpOpcode value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpShaMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpSpaMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpThaMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpTpaMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInPorts128Masked build() {
OFBitMask128 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInPorts512Masked build() {
OFBitMask512 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32d0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInnerEthDstMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32f0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInnerEthSrcMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnL3SrcClassIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnLagIdMasked build() {
LagId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnTcpFlagsMasked build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf0Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf1Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf2Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf3Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf4Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf5Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf6Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf7Masked build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnVrfMasked build() {
VRF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32b08L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmEthDstMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmEthSrcMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmEthTypeMasked build() {
EthType value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv4CodeMasked build() {
ICMPv4Code value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv4TypeMasked build() {
ICMPv4Type value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv6CodeMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv6TypeMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmInPhyPortMasked build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmInPortMasked build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpDscpMasked build() {
IpDscp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpEcnMasked build() {
IpEcn value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpProtoMasked build() {
IpProtocol value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv4DstMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv4SrcMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6DstMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004f04L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6ExthdrMasked build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6FlabelMasked build() {
IPv6FlowLabel value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6NdSllMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6NdTargetMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6NdTllMasked build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6SrcMasked build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMetadataMasked build() {
OFMetadata value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004902L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBosMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmMplsBosMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMplsBosMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMplsLabelMasked build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMplsTcMasked build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmPbbUcaMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmPbbUcaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80005302L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmPbbUcaMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmPbbUcaMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.PBB_UCA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmPbbUcaMasked build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmSctpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmSctpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTcpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTcpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004d10L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelIdMasked.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U64 getMask() {
return mask;
}
@Override
public OFOxmTunnelIdMasked.Builder setMask(U64 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTunnelIdMasked build() {
U64 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTunnelIpv4DstMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTunnelIpv4SrcMasked build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmUdpDstMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmUdpSrcMasked build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmVlanPcpMasked build() {
VlanPcp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmVlanVidMasked build() {
OFVlanVidMatch value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXAggregateStatsRequestVer10.java | 97 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXAggregateStatsRequestVer13.java | 95 |
OVXAggregateStatsReplyVer10 stat = new OVXAggregateStatsReplyVer10(this.getXid(), DEFAULT_FLAGS,U64.of(packetcount), U64.of(bytecount), flowcount);
sw.sendMsg(stat, sw);
}
private List<PhysicalSwitch> getPhysicalSwitches(OVXSwitch sw) {
if (sw instanceof OVXSingleSwitch) {
try {
return sw.getMap().getPhysicalSwitches(sw);
} catch (SwitchMappingException e) {
log.debug("OVXSwitch {} does not map to any physical switches",
sw.getSwitchName());
return new LinkedList<>();
}
}
LinkedList<PhysicalSwitch> sws = new LinkedList<PhysicalSwitch>();
for (OVXPort p : sw.getPorts().values()) {
if (!sws.contains(p.getPhysicalPort().getParentSwitch())) {
sws.add(p.getPhysicalPort().getParentSwitch());
}
}
return sws;
}
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXFlowStatsRequestVer10.java | 79 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXFlowStatsRequestVer13.java | 74 |
&& this.getOutPort() == OFPort.ANY) {
for (PhysicalSwitch psw : getPhysicalSwitches(sw)) {
List<OVXFlowStatsReply> reps = psw.getFlowStats(tid);
if (reps != null) {
for (OVXFlowStatsReply stat : reps) {
for(OFFlowStatsEntry entry :stat.getEntries())
{
if (!uniqueCookies.contains(entry.getCookie().getValue())) {
OVXFlowMod origFM;
try {
origFM = sw.getFlowMod(entry.getCookie().getValue());
uniqueCookies.add(entry.getCookie().getValue());
} catch (MappingException e) {
log.warn(
"FlowMod not found in FlowTable for cookie={}",
entry.getCookie());
continue;
}
entry=entry.createBuilder().setCookie(origFM.getCookie())
.setMatch(origFM.getMatch())
.setActions(origFM.getActions()) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 842 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 842 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 842 |
bb.writeZero(6);
bb.writeLong(message.rxPackets.getValue());
bb.writeLong(message.txPackets.getValue());
bb.writeLong(message.rxBytes.getValue());
bb.writeLong(message.txBytes.getValue());
bb.writeLong(message.rxDropped.getValue());
bb.writeLong(message.txDropped.getValue());
bb.writeLong(message.rxErrors.getValue());
bb.writeLong(message.txErrors.getValue());
bb.writeLong(message.rxFrameErr.getValue());
bb.writeLong(message.rxOverErr.getValue());
bb.writeLong(message.rxCrcErr.getValue());
bb.writeLong(message.collisions.getValue());
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFPortStatsEntryVer10("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 123 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 209 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 209 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 209 |
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 209 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 123 |
@Override
public int getWeight() {
return weight;
}
@Override
public OFBucket.Builder setWeight(int weight) {
this.weight = weight;
this.weightSet = true;
return this;
}
@Override
public OFPort getWatchPort() {
return watchPort;
}
@Override
public OFBucket.Builder setWatchPort(OFPort watchPort) {
this.watchPort = watchPort;
this.watchPortSet = true;
return this;
}
@Override
public OFGroup getWatchGroup() {
return watchGroup;
}
@Override
public OFBucket.Builder setWatchGroup(OFGroup watchGroup) {
this.watchGroup = watchGroup;
this.watchGroupSet = true;
return this;
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public OFBucket.Builder setActions(List<OFAction> actions) {
this.actions = actions;
this.actionsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 839 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 839 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 875 |
public void write(ChannelBuffer bb, OFPortStatsEntryVer11 message) {
message.portNo.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.rxPackets.getValue());
bb.writeLong(message.txPackets.getValue());
bb.writeLong(message.rxBytes.getValue());
bb.writeLong(message.txBytes.getValue());
bb.writeLong(message.rxDropped.getValue());
bb.writeLong(message.txDropped.getValue());
bb.writeLong(message.rxErrors.getValue());
bb.writeLong(message.txErrors.getValue());
bb.writeLong(message.rxFrameErr.getValue());
bb.writeLong(message.rxOverErr.getValue());
bb.writeLong(message.rxCrcErr.getValue());
bb.writeLong(message.collisions.getValue()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 716 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 716 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 716 |
OFStatsReplyFlagsSerializerVer12.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
bb.writeInt(U32.t(message.types));
bb.writeInt(U32.t(message.capabilities));
bb.writeInt(U32.t(message.maxGroupsAll));
bb.writeInt(U32.t(message.maxGroupsSelect));
bb.writeInt(U32.t(message.maxGroupsIndirect));
bb.writeInt(U32.t(message.maxGroupsFf));
bb.writeInt(U32.t(message.actionsAll));
bb.writeInt(U32.t(message.actionsSelect));
bb.writeInt(U32.t(message.actionsIndirect));
bb.writeInt(U32.t(message.actionsFf));
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFGroupFeaturesStatsReplyVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModVer13.java | 354 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModVer14.java | 354 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 29
byte type = bb.readByte();
if(type != (byte) 0x1d)
throw new OFParseError("Wrong type: Expected=OFType.METER_MOD(29), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
int command = U16.f(bb.readShort());
int flags = U16.f(bb.readShort());
long meterId = U32.f(bb.readInt());
List<OFMeterBand> meters = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFMeterBandVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 548 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 607 |
if( durationNsec != other.durationNsec)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * (int) (queueId ^ (queueId >>> 32));
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 947 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 947 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 947 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 411 |
if (rxFrameErr == null) {
if (other.rxFrameErr != null)
return false;
} else if (!rxFrameErr.equals(other.rxFrameErr))
return false;
if (rxOverErr == null) {
if (other.rxOverErr != null)
return false;
} else if (!rxOverErr.equals(other.rxOverErr))
return false;
if (rxCrcErr == null) {
if (other.rxCrcErr != null)
return false;
} else if (!rxCrcErr.equals(other.rxCrcErr))
return false;
if (collisions == null) {
if (other.collisions != null)
return false;
} else if (!collisions.equals(other.collisions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 122 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 201 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 201 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 201 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 201 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsRequestVer10.java | 201 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 122 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 122 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 122 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 122 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFPortStatsRequest.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
//
@Override
public OFPortStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFStatsRequestFlagsSerializerVer10.java | 34 |
| org/projectfloodlight/openflow/protocol/ver11/OFStatsRequestFlagsSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsRequestFlagsSerializerVer12.java | 34 |
public class OFStatsRequestFlagsSerializerVer10 {
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFStatsRequestFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFStatsRequestFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class);
return Collections.unmodifiableSet(set);
}
public static short toWireValue(Set<OFStatsRequestFlags> set) {
short wireValue = 0;
for(OFStatsRequestFlags e: set) {
switch(e) {
default:
throw new IllegalArgumentException("Illegal enum value for type OFStatsRequestFlags in version 1.0: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetMplsTtlVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionSetMplsTtlVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionSetMplsTtlVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionSetMplsTtlVer14.java | 154 |
return new OFActionSetMplsTtlVer11(
mplsTtl
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetMplsTtl> {
@Override
public OFActionSetMplsTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 15
short type = bb.readShort();
if(type != (short) 0xf)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_MPLS_TTL(15), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short mplsTtl = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetNwTtlVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionSetNwTtlVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionSetNwTtlVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionSetNwTtlVer14.java | 154 |
return new OFActionSetNwTtlVer11(
nwTtl
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetNwTtl> {
@Override
public OFActionSetNwTtl readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 23
short type = bb.readShort();
if(type != (short) 0x17)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_NW_TTL(23), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short nwTtl = U8.f(bb.readByte());
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 122 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 201 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 201 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 201 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 201 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 122 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 122 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 122 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupStatsRequest.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
//
@Override
public OFGroupStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 425 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 425 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 425 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 425 |
bb.writeByte((byte) 0x2);
// fixed value property type = 13
bb.writeByte((byte) 0xd);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeInt(message.bufferId.getInt());
message.inPort.write4Bytes(bb);
// actionsLen is length indicator for actions, will be
// udpated when actions has been written
int actionsLenIndex = bb.writerIndex();
bb.writeShort(0);
// pad: 6 bytes
bb.writeZero(6);
int actionsStartIndex = bb.writerIndex();
ChannelUtils.writeList(bb, message.actions);
// update field length member actionsLen
int actionsLength = bb.writerIndex() - actionsStartIndex;
bb.setShort(actionsLenIndex, actionsLength);
bb.writeBytes(message.data);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFPacketOutVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 236 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 236 |
return new OFBsnGentableEntryDescStatsEntryVer13(
checksum,
key,
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnGentableEntryDescStatsEntry> {
@Override
public OFBsnGentableEntryDescStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int keyLength = U16.f(bb.readShort());
U128 checksum = U128.read16Bytes(bb);
List<OFBsnTlv> key = ChannelUtils.readList(bb, keyLength, OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 37 |
final static int LENGTH = 52;
private final static long DEFAULT_XID = 0x0L;
private final static short DEFAULT_CONVERGENCE_STATUS = (short) 0x0;
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static int DEFAULT_ACTOR_SYS_PRIORITY = 0x0;
private final static MacAddress DEFAULT_ACTOR_SYS_MAC = MacAddress.NONE;
private final static int DEFAULT_ACTOR_PORT_PRIORITY = 0x0;
private final static int DEFAULT_ACTOR_PORT_NUM = 0x0;
private final static int DEFAULT_ACTOR_KEY = 0x0;
private final static int DEFAULT_PARTNER_SYS_PRIORITY = 0x0;
private final static MacAddress DEFAULT_PARTNER_SYS_MAC = MacAddress.NONE;
private final static int DEFAULT_PARTNER_PORT_PRIORITY = 0x0;
private final static int DEFAULT_PARTNER_PORT_NUM = 0x0;
private final static int DEFAULT_PARTNER_KEY = 0x0;
// OF message fields
private final long xid;
private final short convergenceStatus;
private final OFPort portNo;
private final int actorSysPriority;
private final MacAddress actorSysMac;
private final int actorPortPriority;
private final int actorPortNum;
private final int actorKey;
private final int partnerSysPriority;
private final MacAddress partnerSysMac;
private final int partnerPortPriority;
private final int partnerPortNum;
private final int partnerKey;
//
// Immutable default instance
final static OFBsnLacpConvergenceNotifVer13 DEFAULT = new OFBsnLacpConvergenceNotifVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 181 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x42L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaCommandReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnLuaCommandReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 181 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x41L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaCommandRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnLuaCommandRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 181 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaNotification.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x43L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaNotification.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaNotification build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFBsnLuaNotificationVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 155 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
public void setInstructions(List<OFInstruction> myInstructions) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 236 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 236 |
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
long refCount = this.refCountSet ? this.refCount : parentMessage.refCount;
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
List<OFBucketCounter> bucketStats = this.bucketStatsSet ? this.bucketStats : parentMessage.bucketStats;
if(bucketStats == null)
throw new NullPointerException("Property bucketStats must not be null");
//
return new OFGroupStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 196 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfigStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterConfigStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 196 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterConfigStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_CONFIG;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterConfigStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfigStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
//
@Override
public OFMeterConfigStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 117 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 196 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeatures getFeatures() {
return features;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFeatures(OFMeterFeatures features) {
this.features = features;
this.featuresSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 196 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 117 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFlags(Set<OFStatsReplyFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeatures getFeatures() {
return features;
}
@Override
public OFMeterFeaturesStatsReply.Builder setFeatures(OFMeterFeatures features) {
this.features = features;
this.featuresSet = true;
return this;
}
//
@Override
public OFMeterFeaturesStatsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 196 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public OFMeterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 196 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterStatsRequest.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
//
@Override
public OFMeterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 111 |
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 115 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 189 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 111 |
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 111 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 115 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 189 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 111 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 115 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 189 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnChecksumVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPermitVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnChecksumVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPermitVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4)
throw new OFParseError("Wrong subtype: Expected=0x4L(0x4L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnChecksumVer13Funnel FUNNEL = new OFActionIdBsnChecksumVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnGentableVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDenyVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnGentableVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDenyVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x5L
int subtype = bb.readInt();
if(subtype != 0x5)
throw new OFParseError("Wrong subtype: Expected=0x5L(0x5L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnGentableVer13Funnel FUNNEL = new OFActionIdBsnGentableVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnMirrorVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnArpOffloadVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnMirrorVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnArpOffloadVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1)
throw new OFParseError("Wrong subtype: Expected=0x1L(0x1L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnMirrorVer13Funnel FUNNEL = new OFActionIdBsnMirrorVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnSetTunnelDstVer13.java | 89 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDhcpOffloadVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnSetTunnelDstVer14.java | 89 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDhcpOffloadVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2)
throw new OFParseError("Wrong subtype: Expected=0x2L(0x2L), got="+subtype);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdBsnSetTunnelDstVer13Funnel FUNNEL = new OFActionIdBsnSetTunnelDstVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 115 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 189 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionCodeSerializerVer10.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionCodeSerializerVer11.java | 46 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionCodeSerializerVer12.java | 49 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionCodeSerializerVer13.java | 49 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionCodeSerializerVer14.java | 49 |
public static OFBadActionCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadActionCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadActionCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadActionCode ofWireValue(short val) {
switch(val) {
case BAD_TYPE_VAL:
return OFBadActionCode.BAD_TYPE;
case BAD_LEN_VAL:
return OFBadActionCode.BAD_LEN;
case BAD_EXPERIMENTER_VAL:
return OFBadActionCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadActionCode.BAD_EXPERIMENTER_TYPE;
case BAD_OUT_PORT_VAL:
return OFBadActionCode.BAD_OUT_PORT;
case BAD_ARGUMENT_VAL:
return OFBadActionCode.BAD_ARGUMENT;
case EPERM_VAL:
return OFBadActionCode.EPERM;
case TOO_MANY_VAL:
return OFBadActionCode.TOO_MANY;
case BAD_QUEUE_VAL:
return OFBadActionCode.BAD_QUEUE; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestCodeSerializerVer10.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestCodeSerializerVer11.java | 43 |
public static OFBadRequestCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadRequestCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadRequestCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadRequestCode ofWireValue(short val) {
switch(val) {
case BAD_VERSION_VAL:
return OFBadRequestCode.BAD_VERSION;
case BAD_TYPE_VAL:
return OFBadRequestCode.BAD_TYPE;
case BAD_STAT_VAL:
return OFBadRequestCode.BAD_STAT;
case BAD_EXPERIMENTER_VAL:
return OFBadRequestCode.BAD_EXPERIMENTER;
case BAD_SUBTYPE_VAL:
return OFBadRequestCode.BAD_SUBTYPE;
case EPERM_VAL:
return OFBadRequestCode.EPERM;
case BAD_LEN_VAL:
return OFBadRequestCode.BAD_LEN;
case BUFFER_EMPTY_VAL:
return OFBadRequestCode.BUFFER_EMPTY;
case BUFFER_UNKNOWN_VAL:
return OFBadRequestCode.BUFFER_UNKNOWN; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataRequestVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataRequestVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15)
throw new OFParseError("Wrong subtype: Expected=0x15L(0x15L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetRequestVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetRequestVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x13L
int subtype = bb.readInt();
if(subtype != 0x13)
throw new OFParseError("Wrong subtype: Expected=0x13L(0x13L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesRequestVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesRequestVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x9L
int subtype = bb.readInt();
if(subtype != 0x9)
throw new OFParseError("Wrong subtype: Expected=0x9L(0x9L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 108 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 108 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 108 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 108 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBsnVport vport = this.vportSet ? this.vport : parentMessage.vport;
if(vport == null)
throw new NullPointerException("Property vport must not be null");
//
return new OFBsnVirtualPortCreateRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 109 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 109 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFDescStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 109 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 109 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFTableStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 109 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFGroupDescStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedCodeSerializerVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedCodeSerializerVer12.java | 48 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedCodeSerializerVer13.java | 48 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedCodeSerializerVer14.java | 48 |
public static OFGroupModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFGroupModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFGroupModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFGroupModFailedCode ofWireValue(short val) {
switch(val) {
case GROUP_EXISTS_VAL:
return OFGroupModFailedCode.GROUP_EXISTS;
case INVALID_GROUP_VAL:
return OFGroupModFailedCode.INVALID_GROUP;
case WEIGHT_UNSUPPORTED_VAL:
return OFGroupModFailedCode.WEIGHT_UNSUPPORTED;
case OUT_OF_GROUPS_VAL:
return OFGroupModFailedCode.OUT_OF_GROUPS;
case OUT_OF_BUCKETS_VAL:
return OFGroupModFailedCode.OUT_OF_BUCKETS;
case CHAINING_UNSUPPORTED_VAL:
return OFGroupModFailedCode.CHAINING_UNSUPPORTED;
case WATCH_UNSUPPORTED_VAL:
return OFGroupModFailedCode.WATCH_UNSUPPORTED;
case LOOP_VAL:
return OFGroupModFailedCode.LOOP;
case UNKNOWN_GROUP_VAL:
return OFGroupModFailedCode.UNKNOWN_GROUP; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionCodeSerializerVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionCodeSerializerVer13.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionCodeSerializerVer14.java | 43 |
public static OFBadInstructionCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadInstructionCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadInstructionCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadInstructionCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_INST_VAL:
return OFBadInstructionCode.UNKNOWN_INST;
case UNSUP_INST_VAL:
return OFBadInstructionCode.UNSUP_INST;
case BAD_TABLE_ID_VAL:
return OFBadInstructionCode.BAD_TABLE_ID;
case UNSUP_METADATA_VAL:
return OFBadInstructionCode.UNSUP_METADATA;
case UNSUP_METADATA_MASK_VAL:
return OFBadInstructionCode.UNSUP_METADATA_MASK;
case BAD_EXPERIMENTER_VAL:
return OFBadInstructionCode.BAD_EXPERIMENTER;
case BAD_EXPERIMENTER_TYPE_VAL:
return OFBadInstructionCode.BAD_EXPERIMENTER_TYPE;
case BAD_LEN_VAL:
return OFBadInstructionCode.BAD_LEN;
case EPERM_VAL:
return OFBadInstructionCode.EPERM; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFControllerRoleSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFControllerRoleSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFControllerRoleSerializerVer14.java | 30 |
public class OFControllerRoleSerializerVer12 {
public final static int ROLE_NOCHANGE_VAL = 0x0;
public final static int ROLE_EQUAL_VAL = 0x1;
public final static int ROLE_MASTER_VAL = 0x2;
public final static int ROLE_SLAVE_VAL = 0x3;
public static OFControllerRole readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFControllerRole e) {
bb.writeInt(toWireValue(e));
}
public static void putTo(OFControllerRole e, PrimitiveSink sink) {
sink.putInt(toWireValue(e));
}
public static OFControllerRole ofWireValue(int val) {
switch(val) {
case ROLE_NOCHANGE_VAL:
return OFControllerRole.ROLE_NOCHANGE;
case ROLE_EQUAL_VAL:
return OFControllerRole.ROLE_EQUAL;
case ROLE_MASTER_VAL:
return OFControllerRole.ROLE_MASTER;
case ROLE_SLAVE_VAL:
return OFControllerRole.ROLE_SLAVE;
default:
throw new IllegalArgumentException("Illegal wire value for type OFControllerRole in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFGroupFeaturesStatsRequestVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x38L
int subtype = bb.readInt();
if(subtype != 0x38)
throw new OFParseError("Wrong subtype: Expected=0x38L(0x38L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public OFBsnDebugCounterDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public OFBsnDebugCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x26L
int subtype = bb.readInt();
if(subtype != 0x26)
throw new OFParseError("Wrong subtype: Expected=0x26L(0x26L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public OFBsnGentableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public OFBsnGentableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 113 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x34L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnGetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
String pipeline = this.pipelineSet ? this.pipeline : parentMessage.pipeline;
if(pipeline == null)
throw new NullPointerException("Property pipeline must not be null");
//
return new OFBsnGetSwitchPipelineReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x33L
int subtype = bb.readInt();
if(subtype != 0x33)
throw new OFParseError("Wrong subtype: Expected=0x33L(0x33L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public OFBsnImageDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFBsnLacpStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 113 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x35L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
String pipeline = this.pipelineSet ? this.pipeline : parentMessage.pipeline;
if(pipeline == null)
throw new NullPointerException("Property pipeline must not be null");
//
return new OFBsnSetSwitchPipelineRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public OFBsnSwitchPipelineStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public OFBsnTableChecksumStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 113 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2dL;
}
@Override
public U64 getTimeMs() {
return timeMs;
}
@Override
public OFBsnTimeReply.Builder setTimeMs(U64 timeMs) {
this.timeMs = timeMs;
this.timeMsSet = true;
return this;
}
@Override
public OFBsnTimeReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
U64 timeMs = this.timeMsSet ? this.timeMs : parentMessage.timeMs;
if(timeMs == null)
throw new NullPointerException("Property timeMs must not be null");
//
return new OFBsnTimeReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2cL
int subtype = bb.readInt();
if(subtype != 0x2c)
throw new OFParseError("Wrong subtype: Expected=0x2cL(0x2cL), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCalientPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFCalientPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x80f958L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFCalientPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFCircuitPortsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFCircuitPortsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x748771L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public OFCircuitPortsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFMeterFeaturesStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
//
return new OFPortDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 374 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 374 |
}
//
@Override
public OFTableFeatures build() {
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
U64 metadataMatch = this.metadataMatchSet ? this.metadataMatch : DEFAULT_METADATA_MATCH;
if(metadataMatch == null)
throw new NullPointerException("Property metadataMatch must not be null");
U64 metadataWrite = this.metadataWriteSet ? this.metadataWrite : DEFAULT_METADATA_WRITE;
if(metadataWrite == null)
throw new NullPointerException("Property metadataWrite must not be null");
long config = this.configSet ? this.config : DEFAULT_CONFIG;
long maxEntries = this.maxEntriesSet ? this.maxEntries : DEFAULT_MAX_ENTRIES;
List<OFTableFeatureProp> properties = this.propertiesSet ? this.properties : DEFAULT_PROPERTIES;
if(properties == null)
throw new NullPointerException("Property properties must not be null");
return new OFTableFeaturesVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public OFBsnDebugCounterDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public OFBsnDebugCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public OFBsnGentableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public OFBsnGentableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public OFBsnImageDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFBsnLacpStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public OFBsnSwitchPipelineStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 188 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public OFBsnTableChecksumStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFlagsSerializerVer10.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFlagsSerializerVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFlagsSerializerVer14.java | 43 |
public static Set<OFFlowModFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFFlowModFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFFlowModFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFFlowModFlags> ofWireValue(short val) {
EnumSet<OFFlowModFlags> set = EnumSet.noneOf(OFFlowModFlags.class);
if((val & SEND_FLOW_REM_VAL) != 0)
set.add(OFFlowModFlags.SEND_FLOW_REM);
if((val & CHECK_OVERLAP_VAL) != 0)
set.add(OFFlowModFlags.CHECK_OVERLAP);
if((val & EMERG_VAL) != 0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowWildcardsSerializerVer10.java | 59 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowWildcardsSerializerVer11.java | 48 |
public static Set<OFFlowWildcards> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFFlowWildcards> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFFlowWildcards> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFFlowWildcards> ofWireValue(int val) {
EnumSet<OFFlowWildcards> set = EnumSet.noneOf(OFFlowWildcards.class);
if((val & IN_PORT_VAL) != 0)
set.add(OFFlowWildcards.IN_PORT);
if((val & DL_VLAN_VAL) != 0)
set.add(OFFlowWildcards.DL_VLAN);
if((val & DL_SRC_VAL) != 0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 770 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 770 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 770 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 800 |
bb.skipBytes(6);
U64 rxPackets = U64.ofRaw(bb.readLong());
U64 txPackets = U64.ofRaw(bb.readLong());
U64 rxBytes = U64.ofRaw(bb.readLong());
U64 txBytes = U64.ofRaw(bb.readLong());
U64 rxDropped = U64.ofRaw(bb.readLong());
U64 txDropped = U64.ofRaw(bb.readLong());
U64 rxErrors = U64.ofRaw(bb.readLong());
U64 txErrors = U64.ofRaw(bb.readLong());
U64 rxFrameErr = U64.ofRaw(bb.readLong());
U64 rxOverErr = U64.ofRaw(bb.readLong());
U64 rxCrcErr = U64.ofRaw(bb.readLong());
U64 collisions = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 722 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 975 |
if( wildcards != other.wildcards)
return false;
if( maxEntries != other.maxEntries)
return false;
if( activeCount != other.activeCount)
return false;
if (lookupCount == null) {
if (other.lookupCount != null)
return false;
} else if (!lookupCount.equals(other.lookupCount))
return false;
if (matchedCount == null) {
if (other.matchedCount != null)
return false;
} else if (!matchedCount.equals(other.matchedCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + wildcards; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 262 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 262 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 262 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 23
byte type = bb.readByte();
if(type != (byte) 0x17)
throw new OFParseError("Wrong type: Expected=OFType.QUEUE_GET_CONFIG_REPLY(23), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFPort port = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
List<OFPacketQueue> queues = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFPacketQueueVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 432 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 706 |
return parentMessage.getActions();
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
@Override
public OFFlowAdd.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
OFInstructionApplyActionsVer13.Builder builder = new OFInstructionApplyActionsVer13.Builder();
builder.setActions(actions);
this.instructions = Collections.singletonList((OFInstruction)builder.build());
this.instructionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowAdd.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 428 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 702 |
return parentMessage.getActions();
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
@Override
public OFFlowDeleteStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
OFInstructionApplyActionsVer13.Builder builder = new OFInstructionApplyActionsVer13.Builder();
builder.setActions(actions);
this.instructions = Collections.singletonList((OFInstruction)builder.build());
this.instructionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowDeleteStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowDeleteStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 427 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 701 |
return parentMessage.getActions();
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
@Override
public OFFlowDelete.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
OFInstructionApplyActionsVer13.Builder builder = new OFInstructionApplyActionsVer13.Builder();
builder.setActions(actions);
this.instructions = Collections.singletonList((OFInstruction)builder.build());
this.instructionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowDelete.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowDelete build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 428 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 702 |
return parentMessage.getActions();
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
@Override
public OFFlowModifyStrict.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
OFInstructionApplyActionsVer13.Builder builder = new OFInstructionApplyActionsVer13.Builder();
builder.setActions(actions);
this.instructions = Collections.singletonList((OFInstruction)builder.build());
this.instructionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowModifyStrict.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowModifyStrict build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 426 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 700 |
return parentMessage.getActions();
for (OFInstruction inst : this.instructions) {
if (inst instanceof OFInstructionApplyActions) {
OFInstructionApplyActions iap = (OFInstructionApplyActions)inst;
return iap.getActions();
}
}
return Collections.emptyList();
}
@Override
public OFFlowModify.Builder setActions(List<OFAction> actions) throws UnsupportedOperationException {
OFInstructionApplyActionsVer13.Builder builder = new OFInstructionApplyActionsVer13.Builder();
builder.setActions(actions);
this.instructions = Collections.singletonList((OFInstruction)builder.build());
this.instructionsSet = true;
return this;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowModify.Builder setImportance(int importance) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.3");
}
@Override
public OFFlowModify build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 477 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 477 |
public void write(ChannelBuffer bb, OFGroupStatsEntryVer13 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// pad: 2 bytes
bb.writeZero(2);
message.group.write4Bytes(bb);
bb.writeInt(U32.t(message.refCount));
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.packetCount.getValue());
bb.writeLong(message.byteCount.getValue());
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
ChannelUtils.writeList(bb, message.bucketStats);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFGroupStatsEntryVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRequestforwardVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFRequestforwardVer14.java | 183 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.REQUESTFORWARD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRequestforward.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getRole() {
return role;
}
@Override
public OFRequestforward.Builder setRole(long role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFRequestforward.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFRequestforward build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 214 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 981 |
else if(of_message_type.equals("OFFlowAddVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(((OFFlowAdd)message).getXid(), ((OFFlowAdd)message).getCookie(), ((OFFlowAdd)message).getCookieMask(), ((OFFlowAdd)message).getTableId(), ((OFFlowAdd)message).getIdleTimeout(), ((OFFlowAdd)message).getHardTimeout(), ((OFFlowAdd)message).getPriority(), ((OFFlowAdd)message).getBufferId(), ((OFFlowAdd)message).getOutPort(), ((OFFlowAdd)message).getOutGroup(), ((OFFlowAdd)message).getFlags(), ((OFFlowAdd)message).getMatch(), ((OFFlowAdd)message).getInstructions());
else if(of_message_type.equals("OFFlowDeleteVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 216 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 983 |
else if(of_message_type.equals("OFFlowDeleteVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowDelete(((OFFlowDelete)message).getXid(), ((OFFlowDelete)message).getCookie(), ((OFFlowDelete)message).getCookieMask(), ((OFFlowDelete)message).getTableId(), ((OFFlowDelete)message).getIdleTimeout(), ((OFFlowDelete)message).getHardTimeout(), ((OFFlowDelete)message).getPriority(), ((OFFlowDelete)message).getBufferId(), ((OFFlowDelete)message).getOutPort(), ((OFFlowDelete)message).getOutGroup(), ((OFFlowDelete)message).getFlags(), ((OFFlowDelete)message).getMatch(), ((OFFlowDelete)message).getInstructions());
else if(of_message_type.equals("OFFlowDeleteStrictVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 218 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 985 |
else if(of_message_type.equals("OFFlowDeleteStrictVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(((OFFlowDeleteStrict)message).getXid(), ((OFFlowDeleteStrict)message).getCookie(), ((OFFlowDeleteStrict)message).getCookieMask(), ((OFFlowDeleteStrict)message).getTableId(), ((OFFlowDeleteStrict)message).getIdleTimeout(), ((OFFlowDeleteStrict)message).getHardTimeout(), ((OFFlowDeleteStrict)message).getPriority(), ((OFFlowDeleteStrict)message).getBufferId(), ((OFFlowDeleteStrict)message).getOutPort(), ((OFFlowDeleteStrict)message).getOutGroup(), ((OFFlowDeleteStrict)message).getFlags(), ((OFFlowDeleteStrict)message).getMatch(), ((OFFlowDeleteStrict)message).getInstructions());
else if(of_message_type.equals("OFFlowModifyVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 220 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 987 |
else if(of_message_type.equals("OFFlowModifyVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowModify(((OFFlowModify)message).getXid(), ((OFFlowModify)message).getCookie(), ((OFFlowModify)message).getCookieMask(), ((OFFlowModify)message).getTableId(), ((OFFlowModify)message).getIdleTimeout(), ((OFFlowModify)message).getHardTimeout(), ((OFFlowModify)message).getPriority(), ((OFFlowModify)message).getBufferId(), ((OFFlowModify)message).getOutPort(), ((OFFlowModify)message).getOutGroup(), ((OFFlowModify)message).getFlags(), ((OFFlowModify)message).getMatch(), ((OFFlowModify)message).getInstructions());
else if(of_message_type.equals("OFFlowModifyStrictVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 222 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 989 |
else if(of_message_type.equals("OFFlowModifyStrictVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowModifyStrict(((OFFlowModifyStrict)message).getXid(), ((OFFlowModifyStrict)message).getCookie(), ((OFFlowModifyStrict)message).getCookieMask(), ((OFFlowModifyStrict)message).getTableId(), ((OFFlowModifyStrict)message).getIdleTimeout(), ((OFFlowModifyStrict)message).getHardTimeout(), ((OFFlowModifyStrict)message).getPriority(), ((OFFlowModifyStrict)message).getBufferId(), ((OFFlowModifyStrict)message).getOutPort(), ((OFFlowModifyStrict)message).getOutGroup(), ((OFFlowModifyStrict)message).getFlags(), ((OFFlowModifyStrict)message).getMatch(), ((OFFlowModifyStrict)message).getInstructions());
else if(of_message_type.equals("OFFlowRemovedVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/link/OVXLink.java | 430 |
| net/onrc/openvirtex/elements/link/OVXLink.java | 522 |
PhysicalPort inPort = null;
PhysicalPort outPort = null;
fm_clone=fm_clone.createBuilder().setBufferId(OFBufferId.NO_BUFFER).build();
//.setCommand(OFFlowModCommand.MODIFY);
List<PhysicalLink> plinks = new LinkedList<PhysicalLink>();
try {
final OVXLink link = this.map.getVirtualNetwork(this.tenantId)
.getLink(this.srcPort, this.dstPort);
for (final PhysicalLink phyLink : OVXMap.getInstance()
.getPhysicalLinks(link)) {
plinks.add(new PhysicalLink(phyLink.getDstPort(), phyLink
.getSrcPort()));
}
} catch (LinkMappingException | NetworkMappingException e) {
log.warn("No physical Links mapped to OVXLink? : {}", e);
return;
}
Collections.reverse(plinks);
for (final PhysicalLink phyLink : plinks) {
if (outPort != null) {
inPort = phyLink.getSrcPort();
Match fm_clone_match=((OFMatchV1)fm_clone.getMatch()) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 287 |
| net/onrc/openvirtex/messages/actions/ver13/OVXActionOutputVer13.java | 295 |
match.getEthDst().getBytes());
link.generateLinkFMs(fm.clone(), flowId);
approvedActions.addAll(new OVXLinkUtils(sw
.getTenantId(), linkId, flowId)
.setLinkFields());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), fm);
throw new DroppedMessageException();
}
}
}
if (inPort.getPhysicalPortNumber() != outPort
.getPhysicalPortNumber()) {
approvedActions.add(OVXFactoryInst.myFactory.actions().
output(OFPort.ofShort(outPort
.getPhysicalPortNumber()),0));
} else {
approvedActions.add(OVXFactoryInst.myFactory.actions().
output(OFPort.IN_PORT,0));
}
}
// TODO: Check if I need to do the unrewrite here for the single
// switch
}
} else if (match.isPacketOut()) {
/*
* PacketOut management. Iterate through the output port list.
*
* Three possible scenarios:
* (1) outPort belongs to a link: send a packetIn coming from the
* virtual link end point to the controller
* (2) outPort is an edge port: two different sub-cases:
* (2a) inPort & outPort belong to the same physical switch: rewrite outPort
* (2b) inPort & outPort belong to different switches (bigSwitch):
* send a packetOut to the physical port @ the end of the BS route.
*/
// TODO check how to delete the packetOut and if it's required
boolean throwException = true; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionSetTpDstVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetTpDstVer11.java | 161 |
return new OFActionSetTpDstVer10(
tpPort
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetTpDst> {
@Override
public OFActionSetTpDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 10
short type = bb.readShort();
if(type != (short) 0xa)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_TP_DST(10), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TransportPort tpPort = TransportPort.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionSetTpSrcVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetTpSrcVer11.java | 161 |
return new OFActionSetTpSrcVer10(
tpPort
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetTpSrc> {
@Override
public OFActionSetTpSrc readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 9
short type = bb.readShort();
if(type != (short) 0x9)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_TP_SRC(9), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TransportPort tpPort = TransportPort.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionSetVlanPcpVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetVlanPcpVer11.java | 161 |
return new OFActionSetVlanPcpVer10(
vlanPcp
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetVlanPcp> {
@Override
public OFActionSetVlanPcp readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_VLAN_PCP(2), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
VlanPcp vlanPcp = VlanPcp.readByte(bb);
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionSetVlanVidVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetVlanVidVer11.java | 161 |
return new OFActionSetVlanVidVer10(
vlanVid
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetVlanVid> {
@Override
public OFActionSetVlanVid readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_VLAN_VID(1), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
VlanVid vlanVid = VlanVid.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 312 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 526 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 345 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 591 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 385 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 663 |
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFTableStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionPopMplsVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionPopMplsVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionPopMplsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPopMplsVer14.java | 161 |
return new OFActionPopMplsVer11(
ethertype
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionPopMpls> {
@Override
public OFActionPopMpls readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 20
short type = bb.readShort();
if(type != (short) 0x14)
throw new OFParseError("Wrong type: Expected=OFActionType.POP_MPLS(20), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
EthType ethertype = EthType.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionPushMplsVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionPushMplsVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionPushMplsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPushMplsVer14.java | 161 |
return new OFActionPushMplsVer11(
ethertype
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionPushMpls> {
@Override
public OFActionPushMpls readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 19
short type = bb.readShort();
if(type != (short) 0x13)
throw new OFParseError("Wrong type: Expected=OFActionType.PUSH_MPLS(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
EthType ethertype = EthType.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionPushVlanVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionPushVlanVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionPushVlanVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPushVlanVer14.java | 161 |
return new OFActionPushVlanVer11(
ethertype
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionPushVlan> {
@Override
public OFActionPushVlan readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 17
short type = bb.readShort();
if(type != (short) 0x11)
throw new OFParseError("Wrong type: Expected=OFActionType.PUSH_VLAN(17), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
EthType ethertype = EthType.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionGotoTableVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionGotoTableVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionGotoTableVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionGotoTableVer14.java | 161 |
return new OFInstructionGotoTableVer11(
tableId
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionGotoTable> {
@Override
public OFInstructionGotoTable readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=OFInstructionType.GOTO_TABLE(1), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 3 bytes
bb.skipBytes(3); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionPushPbbVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPushPbbVer14.java | 161 |
return new OFActionPushPbbVer13(
ethertype
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionPushPbb> {
@Override
public OFActionPushPbb readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 26
short type = bb.readShort();
if(type != (short) 0x1a)
throw new OFParseError("Wrong type: Expected=OFActionType.PUSH_PBB(26), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
EthType ethertype = EthType.read2Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 342 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 342 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 304 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 274 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 274 |
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 467 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 467 |
public void write(ChannelBuffer bb, OFMeterStatsVer13 message) {
int startIndex = bb.writerIndex();
bb.writeInt(U32.t(message.meterId));
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// pad: 6 bytes
bb.writeZero(6);
bb.writeInt(U32.t(message.flowCount));
bb.writeLong(message.packetInCount.getValue());
bb.writeLong(message.byteInCount.getValue());
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
ChannelUtils.writeList(bb, message.bandStats);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFMeterStatsVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 124 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 212 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 212 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 212 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 212 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 212 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 124 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 124 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 124 |
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public OFBsnInterface.Builder setHwAddr(MacAddress hwAddr) {
this.hwAddr = hwAddr;
this.hwAddrSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnInterface.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public IPv4Address getIpv4Addr() {
return ipv4Addr;
}
@Override
public OFBsnInterface.Builder setIpv4Addr(IPv4Address ipv4Addr) {
this.ipv4Addr = ipv4Addr;
this.ipv4AddrSet = true;
return this;
}
@Override
public IPv4Address getIpv4Netmask() {
return ipv4Netmask;
}
@Override
public OFBsnInterface.Builder setIpv4Netmask(IPv4Address ipv4Netmask) {
this.ipv4Netmask = ipv4Netmask;
this.ipv4NetmaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
if(!this.vportSet)
throw new IllegalStateException("Property vport doesn't have default value -- must be set");
if(vport == null)
throw new NullPointerException("Property vport must not be null");
return new OFBsnVirtualPortCreateRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 799 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 794 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 794 |
} else if (!match.equals(other.match))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if( priority != other.priority)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (actions == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTypeSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFTypeSerializerVer14.java | 30 |
public class OFTypeSerializerVer10 {
public final static byte HELLO_VAL = (byte) 0x0;
public final static byte ERROR_VAL = (byte) 0x1;
public final static byte ECHO_REQUEST_VAL = (byte) 0x2;
public final static byte ECHO_REPLY_VAL = (byte) 0x3;
public final static byte EXPERIMENTER_VAL = (byte) 0x4;
public final static byte FEATURES_REQUEST_VAL = (byte) 0x5;
public final static byte FEATURES_REPLY_VAL = (byte) 0x6;
public final static byte GET_CONFIG_REQUEST_VAL = (byte) 0x7;
public final static byte GET_CONFIG_REPLY_VAL = (byte) 0x8;
public final static byte SET_CONFIG_VAL = (byte) 0x9;
public final static byte PACKET_IN_VAL = (byte) 0xa;
public final static byte FLOW_REMOVED_VAL = (byte) 0xb;
public final static byte PORT_STATUS_VAL = (byte) 0xc;
public final static byte PACKET_OUT_VAL = (byte) 0xd;
public final static byte FLOW_MOD_VAL = (byte) 0xe;
public final static byte PORT_MOD_VAL = (byte) 0xf; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 118 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 206 |
@Override
public OFBsnControllerConnectionState getState() {
return state;
}
@Override
public OFBsnControllerConnection.Builder setState(OFBsnControllerConnectionState state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFBsnControllerConnection.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnControllerConnection.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public String getUri() {
return uri;
}
@Override
public OFBsnControllerConnection.Builder setUri(String uri) {
this.uri = uri;
this.uriSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 206 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 118 |
@Override
public OFBsnControllerConnectionState getState() {
return state;
}
@Override
public OFBsnControllerConnection.Builder setState(OFBsnControllerConnectionState state) {
this.state = state;
this.stateSet = true;
return this;
}
@Override
public OFAuxId getAuxiliaryId() {
return auxiliaryId;
}
@Override
public OFBsnControllerConnection.Builder setAuxiliaryId(OFAuxId auxiliaryId) {
this.auxiliaryId = auxiliaryId;
this.auxiliaryIdSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFBsnControllerConnection.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public String getUri() {
return uri;
}
@Override
public OFBsnControllerConnection.Builder setUri(String uri) {
this.uri = uri;
this.uriSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 197 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 113 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public long getBucketsSize() {
return bucketsSize;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setBucketsSize(long bucketsSize) {
this.bucketsSize = bucketsSize;
this.bucketsSizeSet = true;
return this;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public OFBsnGentableDescStatsEntry.Builder setMaxEntries(long maxEntries) {
this.maxEntries = maxEntries;
this.maxEntriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 450 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 384 |
public OFCalientFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 249 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 260 |
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId;
U64 txBytes = this.txBytesSet ? this.txBytes : parentMessage.txBytes;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : parentMessage.txPackets;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : parentMessage.txErrors;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 120 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 202 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 202 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 202 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 202 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 202 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 120 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 120 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 120 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 120 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFPort getDestPort() {
return destPort;
}
@Override
public OFActionBsnMirror.Builder setDestPort(OFPort destPort) {
this.destPort = destPort;
this.destPortSet = true;
return this;
}
@Override
public long getVlanTag() {
return vlanTag;
}
@Override
public OFActionBsnMirror.Builder setVlanTag(long vlanTag) {
this.vlanTag = vlanTag;
this.vlanTagSet = true;
return this;
}
@Override
public short getCopyStage() {
return copyStage;
}
@Override
public OFActionBsnMirror.Builder setCopyStage(short copyStage) {
this.copyStage = copyStage;
this.copyStageSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadActionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_ACTION;
}
@Override
public OFBadActionCode getCode() {
return code;
}
@Override
public OFBadActionErrorMsg.Builder setCode(OFBadActionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadActionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadActionErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadRequestErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_REQUEST;
}
@Override
public OFBadRequestCode getCode() {
return code;
}
@Override
public OFBadRequestErrorMsg.Builder setCode(OFBadRequestCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadRequestErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadRequestErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 171 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFDescStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.FLOW_MOD_FAILED;
}
@Override
public OFFlowModFailedCode getCode() {
return code;
}
@Override
public OFFlowModFailedErrorMsg.Builder setCode(OFFlowModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFFlowModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFFlowModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHelloFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.HELLO_FAILED;
}
@Override
public OFHelloFailedCode getCode() {
return code;
}
@Override
public OFHelloFailedErrorMsg.Builder setCode(OFHelloFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFHelloFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFHelloFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.PORT_MOD_FAILED;
}
@Override
public OFPortModFailedCode getCode() {
return code;
}
@Override
public OFPortModFailedErrorMsg.Builder setCode(OFPortModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFPortModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFPortModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 116 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.QUEUE_OP_FAILED;
}
@Override
public OFQueueOpFailedCode getCode() {
return code;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setCode(OFQueueOpFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFQueueOpFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFQueueOpFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 171 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFTableStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionSetQueueVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionSetQueueVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionSetQueueVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionSetQueueVer14.java | 154 |
return new OFActionSetQueueVer11(
queueId
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetQueue> {
@Override
public OFActionSetQueue readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 21
short type = bb.readShort();
if(type != (short) 0x15)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_QUEUE(21), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long queueId = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadInstructionErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_INSTRUCTION;
}
@Override
public OFBadInstructionCode getCode() {
return code;
}
@Override
public OFBadInstructionErrorMsg.Builder setCode(OFBadInstructionCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadInstructionErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadInstructionErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBadMatchErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.BAD_MATCH;
}
@Override
public OFBadMatchCode getCode() {
return code;
}
@Override
public OFBadMatchErrorMsg.Builder setCode(OFBadMatchCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFBadMatchErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBadMatchErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFGroupDescStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.GROUP_MOD_FAILED;
}
@Override
public OFGroupModFailedCode getCode() {
return code;
}
@Override
public OFGroupModFailedErrorMsg.Builder setCode(OFGroupModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFGroupModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFGroupModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.SWITCH_CONFIG_FAILED;
}
@Override
public OFSwitchConfigFailedCode getCode() {
return code;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setCode(OFSwitchConfigFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFSwitchConfigFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFSwitchConfigFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 116 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_MOD_FAILED;
}
@Override
public OFTableModFailedCode getCode() {
return code;
}
@Override
public OFTableModFailedErrorMsg.Builder setCode(OFTableModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFTableModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFGroupFeaturesStatsRequestVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 182 |
return new OFOxmArpOpMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmArpOpMasked.Builder {
// OF message fields
private boolean valueSet;
private ArpOpcode value;
private boolean maskSet;
private ArpOpcode mask;
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 182 |
return new OFOxmArpShaMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmArpShaMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 182 |
return new OFOxmArpSpaMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmArpSpaMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
private boolean maskSet;
private IPv4Address mask;
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 182 |
return new OFOxmArpThaMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmArpThaMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 182 |
return new OFOxmArpTpaMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmArpTpaMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
private boolean maskSet;
private IPv4Address mask;
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 182 |
return new OFOxmBsnEgrPortGroupIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnEgrPortGroupIdMasked.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
private boolean maskSet;
private ClassId mask;
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 182 |
return new OFOxmBsnGlobalVrfAllowedMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnGlobalVrfAllowedMasked.Builder {
// OF message fields
private boolean valueSet;
private OFBooleanValue value;
private boolean maskSet;
private OFBooleanValue mask;
@Override
public long getTypeLen() {
return 0x30702L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 182 |
return new OFOxmBsnInPorts128MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnInPorts128Masked.Builder {
// OF message fields
private boolean valueSet;
private OFBitMask128 value;
private boolean maskSet;
private OFBitMask128 mask;
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 182 |
return new OFOxmBsnInPorts512MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnInPorts512Masked.Builder {
// OF message fields
private boolean valueSet;
private OFBitMask512 value;
private boolean maskSet;
private OFBitMask512 mask;
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 182 |
return new OFOxmBsnIngressPortGroupIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnIngressPortGroupIdMasked.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
private boolean maskSet;
private ClassId mask;
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 182 |
return new OFOxmBsnL2CacheHitMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnL2CacheHitMasked.Builder {
// OF message fields
private boolean valueSet;
private OFBooleanValue value;
private boolean maskSet;
private OFBooleanValue mask;
@Override
public long getTypeLen() {
return 0x32502L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 182 |
return new OFOxmBsnL3DstClassIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnL3DstClassIdMasked.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
private boolean maskSet;
private ClassId mask;
@Override
public long getTypeLen() {
return 0x30d08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 182 |
return new OFOxmBsnL3InterfaceClassIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnL3InterfaceClassIdMasked.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
private boolean maskSet;
private ClassId mask;
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 182 |
return new OFOxmBsnL3SrcClassIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnL3SrcClassIdMasked.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
private boolean maskSet;
private ClassId mask;
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 182 |
return new OFOxmBsnLagIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnLagIdMasked.Builder {
// OF message fields
private boolean valueSet;
private LagId value;
private boolean maskSet;
private LagId mask;
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 182 |
return new OFOxmBsnTcpFlagsMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnTcpFlagsMasked.Builder {
// OF message fields
private boolean valueSet;
private U16 value;
private boolean maskSet;
private U16 mask;
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 182 |
return new OFOxmBsnUdf0MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf0Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 182 |
return new OFOxmBsnUdf1MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf1Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 182 |
return new OFOxmBsnUdf2MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf2Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 182 |
return new OFOxmBsnUdf3MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf3Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 182 |
return new OFOxmBsnUdf4MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf4Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 182 |
return new OFOxmBsnUdf5MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf5Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 182 |
return new OFOxmBsnUdf6MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf6Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 182 |
return new OFOxmBsnUdf7MaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnUdf7Masked.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
private boolean maskSet;
private UDF mask;
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 182 |
return new OFOxmBsnVlanXlatePortGroupIdMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnVlanXlatePortGroupIdMasked.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
private boolean maskSet;
private ClassId mask;
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 182 |
return new OFOxmBsnVrfMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmBsnVrfMasked.Builder {
// OF message fields
private boolean valueSet;
private VRF value;
private boolean maskSet;
private VRF mask;
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 182 |
return new OFOxmEthDstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmEthDstMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 182 |
return new OFOxmEthSrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmEthSrcMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 182 |
return new OFOxmEthTypeMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmEthTypeMasked.Builder {
// OF message fields
private boolean valueSet;
private EthType value;
private boolean maskSet;
private EthType mask;
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 182 |
return new OFOxmIcmpv4CodeMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIcmpv4CodeMasked.Builder {
// OF message fields
private boolean valueSet;
private ICMPv4Code value;
private boolean maskSet;
private ICMPv4Code mask;
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 182 |
return new OFOxmIcmpv4TypeMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIcmpv4TypeMasked.Builder {
// OF message fields
private boolean valueSet;
private ICMPv4Type value;
private boolean maskSet;
private ICMPv4Type mask;
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 182 |
return new OFOxmIcmpv6CodeMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIcmpv6CodeMasked.Builder {
// OF message fields
private boolean valueSet;
private U8 value;
private boolean maskSet;
private U8 mask;
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 182 |
return new OFOxmIcmpv6TypeMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIcmpv6TypeMasked.Builder {
// OF message fields
private boolean valueSet;
private U8 value;
private boolean maskSet;
private U8 mask;
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 182 |
return new OFOxmInPhyPortMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmInPhyPortMasked.Builder {
// OF message fields
private boolean valueSet;
private OFPort value;
private boolean maskSet;
private OFPort mask;
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 182 |
return new OFOxmInPortMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmInPortMasked.Builder {
// OF message fields
private boolean valueSet;
private OFPort value;
private boolean maskSet;
private OFPort mask;
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 182 |
return new OFOxmIpDscpMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpDscpMasked.Builder {
// OF message fields
private boolean valueSet;
private IpDscp value;
private boolean maskSet;
private IpDscp mask;
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 182 |
return new OFOxmIpEcnMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpEcnMasked.Builder {
// OF message fields
private boolean valueSet;
private IpEcn value;
private boolean maskSet;
private IpEcn mask;
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 182 |
return new OFOxmIpProtoMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpProtoMasked.Builder {
// OF message fields
private boolean valueSet;
private IpProtocol value;
private boolean maskSet;
private IpProtocol mask;
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 182 |
return new OFOxmIpv4DstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv4DstMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
private boolean maskSet;
private IPv4Address mask;
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 182 |
return new OFOxmIpv4SrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv4SrcMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
private boolean maskSet;
private IPv4Address mask;
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 182 |
return new OFOxmIpv6DstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6DstMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv6Address value;
private boolean maskSet;
private IPv6Address mask;
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 182 |
return new OFOxmIpv6FlabelMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6FlabelMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv6FlowLabel value;
private boolean maskSet;
private IPv6FlowLabel mask;
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 182 |
return new OFOxmIpv6NdSllMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6NdSllMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 182 |
return new OFOxmIpv6NdTargetMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6NdTargetMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv6Address value;
private boolean maskSet;
private IPv6Address mask;
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 182 |
return new OFOxmIpv6NdTllMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6NdTllMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 182 |
return new OFOxmIpv6SrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6SrcMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv6Address value;
private boolean maskSet;
private IPv6Address mask;
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 182 |
return new OFOxmMetadataMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmMetadataMasked.Builder {
// OF message fields
private boolean valueSet;
private OFMetadata value;
private boolean maskSet;
private OFMetadata mask;
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 182 |
return new OFOxmMplsLabelMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmMplsLabelMasked.Builder {
// OF message fields
private boolean valueSet;
private U32 value;
private boolean maskSet;
private U32 mask;
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 182 |
return new OFOxmMplsTcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmMplsTcMasked.Builder {
// OF message fields
private boolean valueSet;
private U8 value;
private boolean maskSet;
private U8 mask;
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 182 |
return new OFOxmSctpDstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmSctpDstMasked.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
private boolean maskSet;
private TransportPort mask;
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 182 |
return new OFOxmSctpSrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmSctpSrcMasked.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
private boolean maskSet;
private TransportPort mask;
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 182 |
return new OFOxmTcpDstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmTcpDstMasked.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
private boolean maskSet;
private TransportPort mask;
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 182 |
return new OFOxmTcpSrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmTcpSrcMasked.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
private boolean maskSet;
private TransportPort mask;
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 182 |
return new OFOxmTunnelIpv4DstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmTunnelIpv4DstMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
private boolean maskSet;
private IPv4Address mask;
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 182 |
return new OFOxmTunnelIpv4SrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmTunnelIpv4SrcMasked.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
private boolean maskSet;
private IPv4Address mask;
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 182 |
return new OFOxmUdpDstMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmUdpDstMasked.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
private boolean maskSet;
private TransportPort mask;
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 182 |
return new OFOxmUdpSrcMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmUdpSrcMasked.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
private boolean maskSet;
private TransportPort mask;
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 182 |
return new OFOxmVlanPcpMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmVlanPcpMasked.Builder {
// OF message fields
private boolean valueSet;
private VlanPcp value;
private boolean maskSet;
private VlanPcp mask;
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 182 |
return new OFOxmVlanVidMaskedVer12(
value,
mask
);
}
}
static class Builder implements OFOxmVlanVidMasked.Builder {
// OF message fields
private boolean valueSet;
private OFVlanVidMatch value;
private boolean maskSet;
private OFVlanVidMatch mask;
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 116 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.ROLE_REQUEST_FAILED;
}
@Override
public OFRoleRequestFailedCode getCode() {
return code;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setCode(OFRoleRequestFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFRoleRequestFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFRoleRequestFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 164 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 164 |
return new OFActionBsnGentableVer13(
tableId,
key
);
}
}
static class Builder implements OFActionBsnGentable.Builder {
// OF message fields
private boolean tableIdSet;
private long tableId;
private boolean keySet;
private List<OFBsnTlv> key;
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public long getTableId() {
return tableId;
}
@Override
public OFActionBsnGentable.Builder setTableId(long tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFActionBsnGentable.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 164 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 164 |
return new OFBsnDebugCounterDescStatsEntryVer13(
counterId,
name,
description
);
}
}
static class Builder implements OFBsnDebugCounterDescStatsEntry.Builder {
// OF message fields
private boolean counterIdSet;
private U64 counterId;
private boolean nameSet;
private String name;
private boolean descriptionSet;
private String description;
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public String getDescription() {
return description;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setDescription(String description) {
this.description = description;
this.descriptionSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 154 |
return new OFBsnGentableStatsEntryVer13(
tableId,
entryCount,
checksum
);
}
}
static class Builder implements OFBsnGentableStatsEntry.Builder {
// OF message fields
private boolean tableIdSet;
private GenTableId tableId;
private boolean entryCountSet;
private long entryCount;
private boolean checksumSet;
private U128 checksum;
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getEntryCount() {
return entryCount;
}
@Override
public OFBsnGentableStatsEntry.Builder setEntryCount(long entryCount) {
this.entryCount = entryCount;
this.entryCountSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 180 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 180 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x34L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
//
@Override
public OFBsnGetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
String pipeline = this.pipelineSet ? this.pipeline : DEFAULT_PIPELINE;
if(pipeline == null)
throw new NullPointerException("Property pipeline must not be null");
return new OFBsnGetSwitchPipelineReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 180 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 180 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x35L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
//
@Override
public OFBsnSetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
String pipeline = this.pipelineSet ? this.pipeline : DEFAULT_PIPELINE;
if(pipeline == null)
throw new NullPointerException("Property pipeline must not be null");
return new OFBsnSetSwitchPipelineRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 180 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 180 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2dL;
}
@Override
public U64 getTimeMs() {
return timeMs;
}
@Override
public OFBsnTimeReply.Builder setTimeMs(U64 timeMs) {
this.timeMs = timeMs;
this.timeMsSet = true;
return this;
}
//
@Override
public OFBsnTimeReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
U64 timeMs = this.timeMsSet ? this.timeMs : DEFAULT_TIME_MS;
if(timeMs == null)
throw new NullPointerException("Property timeMs must not be null");
return new OFBsnTimeReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvActorKeyVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvActorKeyVer14.java | 154 |
return new OFBsnTlvActorKeyVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvActorKey> {
@Override
public OFBsnTlvActorKey readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2c
short type = bb.readShort();
if(type != (short) 0x2c)
throw new OFParseError("Wrong type: Expected=0x2c(0x2c), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvActorPortNumVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvActorPortNumVer14.java | 154 |
return new OFBsnTlvActorPortNumVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvActorPortNum> {
@Override
public OFBsnTlvActorPortNum readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2b
short type = bb.readShort();
if(type != (short) 0x2b)
throw new OFParseError("Wrong type: Expected=0x2b(0x2b), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvActorPortPriorityVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvActorPortPriorityVer14.java | 154 |
return new OFBsnTlvActorPortPriorityVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvActorPortPriority> {
@Override
public OFBsnTlvActorPortPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2a
short type = bb.readShort();
if(type != (short) 0x2a)
throw new OFParseError("Wrong type: Expected=0x2a(0x2a), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvActorSystemPriorityVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvActorSystemPriorityVer14.java | 154 |
return new OFBsnTlvActorSystemPriorityVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvActorSystemPriority> {
@Override
public OFBsnTlvActorSystemPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x28
short type = bb.readShort();
if(type != (short) 0x28)
throw new OFParseError("Wrong type: Expected=0x28(0x28), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvBroadcastQueryTimeoutVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvBroadcastQueryTimeoutVer14.java | 154 |
return new OFBsnTlvBroadcastQueryTimeoutVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvBroadcastQueryTimeout> {
@Override
public OFBsnTlvBroadcastQueryTimeout readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xa
short type = bb.readShort();
if(type != (short) 0xa)
throw new OFParseError("Wrong type: Expected=0xa(0xa), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvConvergenceStatusVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvConvergenceStatusVer14.java | 154 |
return new OFBsnTlvConvergenceStatusVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvConvergenceStatus> {
@Override
public OFBsnTlvConvergenceStatus readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2d
short type = bb.readShort();
if(type != (short) 0x2d)
throw new OFParseError("Wrong type: Expected=0x2d(0x2d), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvCrcEnabledVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvCrcEnabledVer14.java | 154 |
return new OFBsnTlvCrcEnabledVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvCrcEnabled> {
@Override
public OFBsnTlvCrcEnabled readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x16
short type = bb.readShort();
if(type != (short) 0x16)
throw new OFParseError("Wrong type: Expected=0x16(0x16), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvHeaderSizeVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvHeaderSizeVer14.java | 154 |
return new OFBsnTlvHeaderSizeVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvHeaderSize> {
@Override
public OFBsnTlvHeaderSize readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1f
short type = bb.readShort();
if(type != (short) 0x1f)
throw new OFParseError("Wrong type: Expected=0x1f(0x1f), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIcmpCodeVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIcmpCodeVer14.java | 154 |
return new OFBsnTlvIcmpCodeVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIcmpCode> {
@Override
public OFBsnTlvIcmpCode readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x45
short type = bb.readShort();
if(type != (short) 0x45)
throw new OFParseError("Wrong type: Expected=0x45(0x45), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIcmpIdVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIcmpIdVer14.java | 154 |
return new OFBsnTlvIcmpIdVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIcmpId> {
@Override
public OFBsnTlvIcmpId readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x46
short type = bb.readShort();
if(type != (short) 0x46)
throw new OFParseError("Wrong type: Expected=0x46(0x46), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIcmpTypeVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIcmpTypeVer14.java | 154 |
return new OFBsnTlvIcmpTypeVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIcmpType> {
@Override
public OFBsnTlvIcmpType readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x44
short type = bb.readShort();
if(type != (short) 0x44)
throw new OFParseError("Wrong type: Expected=0x44(0x44), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIdleTimeVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIdleTimeVer14.java | 161 |
return new OFBsnTlvIdleTimeVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIdleTime> {
@Override
public OFBsnTlvIdleTime readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x5
short type = bb.readShort();
if(type != (short) 0x5)
throw new OFParseError("Wrong type: Expected=0x5(0x5), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIdleTimeoutVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIdleTimeoutVer14.java | 154 |
return new OFBsnTlvIdleTimeoutVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIdleTimeout> {
@Override
public OFBsnTlvIdleTimeout readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x8
short type = bb.readShort();
if(type != (short) 0x8)
throw new OFParseError("Wrong type: Expected=0x8(0x8), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIntervalVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIntervalVer14.java | 154 |
return new OFBsnTlvIntervalVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvInterval> {
@Override
public OFBsnTlvInterval readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3a
short type = bb.readShort();
if(type != (short) 0x3a)
throw new OFParseError("Wrong type: Expected=0x3a(0x3a), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIpProtoVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIpProtoVer14.java | 154 |
return new OFBsnTlvIpProtoVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIpProto> {
@Override
public OFBsnTlvIpProto readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x43
short type = bb.readShort();
if(type != (short) 0x43)
throw new OFParseError("Wrong type: Expected=0x43(0x43), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvMissPacketsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvMissPacketsVer14.java | 161 |
return new OFBsnTlvMissPacketsVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvMissPackets> {
@Override
public OFBsnTlvMissPackets readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xd
short type = bb.readShort();
if(type != (short) 0xd)
throw new OFParseError("Wrong type: Expected=0xd(0xd), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvMplsControlWordVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvMplsControlWordVer14.java | 154 |
return new OFBsnTlvMplsControlWordVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvMplsControlWord> {
@Override
public OFBsnTlvMplsControlWord readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3e
short type = bb.readShort();
if(type != (short) 0x3e)
throw new OFParseError("Wrong type: Expected=0x3e(0x3e), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvMplsLabelVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvMplsLabelVer14.java | 154 |
return new OFBsnTlvMplsLabelVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvMplsLabel> {
@Override
public OFBsnTlvMplsLabel readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3d
short type = bb.readShort();
if(type != (short) 0x3d)
throw new OFParseError("Wrong type: Expected=0x3d(0x3d), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvMplsSequencedVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvMplsSequencedVer14.java | 154 |
return new OFBsnTlvMplsSequencedVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvMplsSequenced> {
@Override
public OFBsnTlvMplsSequenced readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3f
short type = bb.readShort();
if(type != (short) 0x3f)
throw new OFParseError("Wrong type: Expected=0x3f(0x3f), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPartnerKeyVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPartnerKeyVer14.java | 154 |
return new OFBsnTlvPartnerKeyVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPartnerKey> {
@Override
public OFBsnTlvPartnerKey readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x33
short type = bb.readShort();
if(type != (short) 0x33)
throw new OFParseError("Wrong type: Expected=0x33(0x33), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPartnerPortNumVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPartnerPortNumVer14.java | 154 |
return new OFBsnTlvPartnerPortNumVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPartnerPortNum> {
@Override
public OFBsnTlvPartnerPortNum readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x32
short type = bb.readShort();
if(type != (short) 0x32)
throw new OFParseError("Wrong type: Expected=0x32(0x32), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPartnerPortPriorityVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPartnerPortPriorityVer14.java | 154 |
return new OFBsnTlvPartnerPortPriorityVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPartnerPortPriority> {
@Override
public OFBsnTlvPartnerPortPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x31
short type = bb.readShort();
if(type != (short) 0x31)
throw new OFParseError("Wrong type: Expected=0x31(0x31), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPartnerSystemPriorityVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPartnerSystemPriorityVer14.java | 154 |
return new OFBsnTlvPartnerSystemPriorityVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPartnerSystemPriority> {
@Override
public OFBsnTlvPartnerSystemPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2f
short type = bb.readShort();
if(type != (short) 0x2f)
throw new OFParseError("Wrong type: Expected=0x2f(0x2f), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPriorityVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPriorityVer14.java | 154 |
return new OFBsnTlvPriorityVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPriority> {
@Override
public OFBsnTlvPriority readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x39
short type = bb.readShort();
if(type != (short) 0x39)
throw new OFParseError("Wrong type: Expected=0x39(0x39), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvQueueIdVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvQueueIdVer14.java | 154 |
return new OFBsnTlvQueueIdVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvQueueId> {
@Override
public OFBsnTlvQueueId readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x14
short type = bb.readShort();
if(type != (short) 0x14)
throw new OFParseError("Wrong type: Expected=0x14(0x14), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvQueueWeightVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvQueueWeightVer14.java | 154 |
return new OFBsnTlvQueueWeightVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvQueueWeight> {
@Override
public OFBsnTlvQueueWeight readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x15
short type = bb.readShort();
if(type != (short) 0x15)
throw new OFParseError("Wrong type: Expected=0x15(0x15), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReplyPacketsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReplyPacketsVer14.java | 161 |
return new OFBsnTlvReplyPacketsVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvReplyPackets> {
@Override
public OFBsnTlvReplyPackets readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xc
short type = bb.readShort();
if(type != (short) 0xc)
throw new OFParseError("Wrong type: Expected=0xc(0xc), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvRequestPacketsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvRequestPacketsVer14.java | 161 |
return new OFBsnTlvRequestPacketsVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvRequestPackets> {
@Override
public OFBsnTlvRequestPackets readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xb
short type = bb.readShort();
if(type != (short) 0xb)
throw new OFParseError("Wrong type: Expected=0xb(0xb), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvRxBytesVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvRxBytesVer14.java | 161 |
return new OFBsnTlvRxBytesVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvRxBytes> {
@Override
public OFBsnTlvRxBytes readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x47
short type = bb.readShort();
if(type != (short) 0x47)
throw new OFParseError("Wrong type: Expected=0x47(0x47), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvRxPacketsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvRxPacketsVer14.java | 161 |
return new OFBsnTlvRxPacketsVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvRxPackets> {
@Override
public OFBsnTlvRxPackets readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=0x2(0x2), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvSamplingRateVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvSamplingRateVer14.java | 154 |
return new OFBsnTlvSamplingRateVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvSamplingRate> {
@Override
public OFBsnTlvSamplingRate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1e
short type = bb.readShort();
if(type != (short) 0x1e)
throw new OFParseError("Wrong type: Expected=0x1e(0x1e), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvSubAgentIdVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvSubAgentIdVer14.java | 154 |
return new OFBsnTlvSubAgentIdVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvSubAgentId> {
@Override
public OFBsnTlvSubAgentId readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x26
short type = bb.readShort();
if(type != (short) 0x26)
throw new OFParseError("Wrong type: Expected=0x26(0x26), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvTcpDstVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvTcpDstVer14.java | 154 |
return new OFBsnTlvTcpDstVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvTcpDst> {
@Override
public OFBsnTlvTcpDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x42
short type = bb.readShort();
if(type != (short) 0x42)
throw new OFParseError("Wrong type: Expected=0x42(0x42), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvTcpSrcVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvTcpSrcVer14.java | 154 |
return new OFBsnTlvTcpSrcVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvTcpSrc> {
@Override
public OFBsnTlvTcpSrc readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x41
short type = bb.readShort();
if(type != (short) 0x41)
throw new OFParseError("Wrong type: Expected=0x41(0x41), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvTxBytesVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvTxBytesVer14.java | 161 |
return new OFBsnTlvTxBytesVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvTxBytes> {
@Override
public OFBsnTlvTxBytes readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x27
short type = bb.readShort();
if(type != (short) 0x27)
throw new OFParseError("Wrong type: Expected=0x27(0x27), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvTxPacketsVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvTxPacketsVer14.java | 161 |
return new OFBsnTlvTxPacketsVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvTxPackets> {
@Override
public OFBsnTlvTxPackets readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3
short type = bb.readShort();
if(type != (short) 0x3)
throw new OFParseError("Wrong type: Expected=0x3(0x3), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
U64 value = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUdfIdVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUdfIdVer14.java | 154 |
return new OFBsnTlvUdfIdVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUdfId> {
@Override
public OFBsnTlvUdfId readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xf
short type = bb.readShort();
if(type != (short) 0xf)
throw new OFParseError("Wrong type: Expected=0xf(0xf), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUdfLengthVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUdfLengthVer14.java | 154 |
return new OFBsnTlvUdfLengthVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUdfLength> {
@Override
public OFBsnTlvUdfLength readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x12
short type = bb.readShort();
if(type != (short) 0x12)
throw new OFParseError("Wrong type: Expected=0x12(0x12), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUdfOffsetVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUdfOffsetVer14.java | 154 |
return new OFBsnTlvUdfOffsetVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUdfOffset> {
@Override
public OFBsnTlvUdfOffset readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x11
short type = bb.readShort();
if(type != (short) 0x11)
throw new OFParseError("Wrong type: Expected=0x11(0x11), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUdpDstVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUdpDstVer14.java | 154 |
return new OFBsnTlvUdpDstVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUdpDst> {
@Override
public OFBsnTlvUdpDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x25
short type = bb.readShort();
if(type != (short) 0x25)
throw new OFParseError("Wrong type: Expected=0x25(0x25), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUdpSrcVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUdpSrcVer14.java | 154 |
return new OFBsnTlvUdpSrcVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUdpSrc> {
@Override
public OFBsnTlvUdpSrc readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x24
short type = bb.readShort();
if(type != (short) 0x24)
throw new OFParseError("Wrong type: Expected=0x24(0x24), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int value = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUnicastQueryTimeoutVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUnicastQueryTimeoutVer14.java | 154 |
return new OFBsnTlvUnicastQueryTimeoutVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUnicastQueryTimeout> {
@Override
public OFBsnTlvUnicastQueryTimeout readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x9
short type = bb.readShort();
if(type != (short) 0x9)
throw new OFParseError("Wrong type: Expected=0x9(0x9), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvVlanPcpVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvVlanPcpVer14.java | 154 |
return new OFBsnTlvVlanPcpVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvVlanPcp> {
@Override
public OFBsnTlvVlanPcp readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x48
short type = bb.readShort();
if(type != (short) 0x48)
throw new OFParseError("Wrong type: Expected=0x48(0x48), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
short value = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvVrfVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvVrfVer14.java | 154 |
return new OFBsnTlvVrfVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvVrf> {
@Override
public OFBsnTlvVrf readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x13
short type = bb.readShort();
if(type != (short) 0x13)
throw new OFParseError("Wrong type: Expected=0x13(0x13), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionMeterVer13.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionMeterVer14.java | 154 |
return new OFInstructionMeterVer13(
meterId
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionMeter> {
@Override
public OFInstructionMeter readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 6
short type = bb.readShort();
if(type != (short) 0x6)
throw new OFParseError("Wrong type: Expected=OFInstructionType.METER(6), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long meterId = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFMeterFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFMeterFeaturesStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.METER_MOD_FAILED;
}
@Override
public OFMeterModFailedCode getCode() {
return code;
}
@Override
public OFMeterModFailedErrorMsg.Builder setCode(OFMeterModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFMeterModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFMeterModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterModFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.METER_MOD_FAILED;
}
@Override
public OFMeterModFailedCode getCode() {
return code;
}
@Override
public OFMeterModFailedErrorMsg.Builder setCode(OFMeterModFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFMeterModFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFMeterModFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 182 |
return new OFOxmBsnInnerEthDstMaskedVer13(
value,
mask
);
}
}
static class Builder implements OFOxmBsnInnerEthDstMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x32d0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 182 |
return new OFOxmBsnInnerEthSrcMaskedVer13(
value,
mask
);
}
}
static class Builder implements OFOxmBsnInnerEthSrcMasked.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
private boolean maskSet;
private MacAddress mask;
@Override
public long getTypeLen() {
return 0x32f0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 182 |
return new OFOxmBsnVxlanNetworkIdMaskedVer13(
value,
mask
);
}
}
static class Builder implements OFOxmBsnVxlanNetworkIdMasked.Builder {
// OF message fields
private boolean valueSet;
private U32 value;
private boolean maskSet;
private U32 mask;
@Override
public long getTypeLen() {
return 0x32b08L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 182 |
return new OFOxmIpv6ExthdrMaskedVer13(
value,
mask
);
}
}
static class Builder implements OFOxmIpv6ExthdrMasked.Builder {
// OF message fields
private boolean valueSet;
private U16 value;
private boolean maskSet;
private U16 mask;
@Override
public long getTypeLen() {
return 0x80004f04L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 182 |
return new OFOxmMplsBosMaskedVer13(
value,
mask
);
}
}
static class Builder implements OFOxmMplsBosMasked.Builder {
// OF message fields
private boolean valueSet;
private OFBooleanValue value;
private boolean maskSet;
private OFBooleanValue mask;
@Override
public long getTypeLen() {
return 0x80004902L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBosMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmMplsBosMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 182 |
return new OFOxmTunnelIdMaskedVer13(
value,
mask
);
}
}
static class Builder implements OFOxmTunnelIdMasked.Builder {
// OF message fields
private boolean valueSet;
private U64 value;
private boolean maskSet;
private U64 mask;
@Override
public long getTypeLen() {
return 0x80004d10L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelIdMasked.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U64 getMask() {
return mask;
}
@Override
public OFOxmTunnelIdMasked.Builder setMask(U64 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
return new OFPortDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 116 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 195 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_FEATURES_FAILED;
}
@Override
public OFTableFeaturesFailedCode getCode() {
return code;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setCode(OFTableFeaturesFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFTableFeaturesFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 116 |
}
@Override
public OFType getType() {
return OFType.ERROR;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFErrorType getErrType() {
return OFErrorType.TABLE_FEATURES_FAILED;
}
@Override
public OFTableFeaturesFailedCode getCode() {
return code;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setCode(OFTableFeaturesFailedCode code) {
this.code = code;
this.codeSet = true;
return this;
}
@Override
public OFErrorCauseData getData() {
return data;
}
@Override
public OFTableFeaturesFailedErrorMsg.Builder setData(OFErrorCauseData data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFTableFeaturesFailedErrorMsg build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 105 |
throw new NullPointerException("OFFlowAddVer14: property instructions cannot be null");
}
this.xid = xid;
this.cookie = cookie;
this.cookieMask = cookieMask;
this.tableId = tableId;
this.idleTimeout = idleTimeout;
this.hardTimeout = hardTimeout;
this.priority = priority;
this.bufferId = bufferId;
this.outPort = outPort;
this.outGroup = outGroup;
this.flags = flags;
this.importance = importance;
this.match = match;
this.instructions = instructions;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXAggregateStatsRequestVer10.java | 73 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXAggregateStatsRequestVer13.java | 71 |
&& this.getOutPort() == OFPort.ANY) {
FlowTable ft = sw.getFlowTable();
flowcount=ft.getFlowTable().size();
for (PhysicalSwitch psw : getPhysicalSwitches(sw)) {
List<OVXFlowStatsReply> reps = psw.getFlowStats(tid);
if (reps != null) {
for (OVXFlowStatsReply s : reps) {
for(OFFlowStatsEntry entry : s.getEntries())
if (!uniqueCookies.contains(entry.getCookie())) {
bytecount=bytecount+entry.getByteCount().getValue();
packetcount=packetcount+entry.getPacketCount().getValue();
uniqueCookies.add(entry.getCookie().getValue());
}
}
}
}
}
Set<OFStatsReplyFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsReplyFlags>of(); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/protocol/OVXMatch.java | 96 |
| net/onrc/openvirtex/protocol/OVXMatchV3.java | 88 |
public OVXMatch setCookie(final long cookie) {
this.cookie = cookie;
return this;
}
/**
* Gets the pkt data.
*
* @return the pkt data
*/
public byte[] getPktData() {
return this.pktData;
}
/**
* Sets the pkt data.
*
* @param pktData
* the new pkt data
*/
public void setPktData(final byte[] pktData) {
this.pktData = pktData;
}
/**
* Checks if this match belongs to a flow mod (e.g. the cookie is not zero).
*
* @return true, if is flow mod
*/
public boolean isFlowMod() {
return this.cookie != 0;
}
/**
* Checks if this match belongs to a packet out (e.g. the packet data is not
* null).
*
* @return true, if is packet out
*/
public boolean isPacketOut() {
return this.pktData != null;
}
public static class CIDRToIP {
public static String cidrToString(final int ip, final int prefix) {
String str;
if (prefix >= 32) {
str = IPv4Address.of(ip).toString();
} else {
// use the negation of mask to fake endian magic
final int mask = ~((1 << 32 - prefix) - 1);
str = IPv4Address.of(ip & mask).toString() + "/" + prefix;
}
return str;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionNiciraVer10.java | 34 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionNiciraVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionNiciraVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionNiciraVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionNiciraVer14.java | 34 |
public final static OFActionNiciraVer10.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionNicira> {
@Override
public OFActionNicira readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
short subtype = bb.readShort();
bb.readerIndex(start);
switch(subtype) {
case (short) 0x12:
// discriminator value 0x12=0x12 for class OFActionNiciraDecTtlVer10
return OFActionNiciraDecTtlVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 437 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 437 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 437 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 437 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 437 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 437 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 437 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 437 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 437 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 437 |
OFBsnPduRxReplyVer10 other = (OFBsnPduRxReplyVer10) obj;
if( xid != other.xid)
return false;
if( status != other.status)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( slotNum != other.slotNum)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (status ^ (status >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + slotNum;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortReasonSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortReasonSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortReasonSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortReasonSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortReasonSerializerVer14.java | 30 |
public class OFPortReasonSerializerVer10 {
public final static byte ADD_VAL = (byte) 0x0;
public final static byte DELETE_VAL = (byte) 0x1;
public final static byte MODIFY_VAL = (byte) 0x2;
public static OFPortReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPortReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFPortReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFPortReason ofWireValue(byte val) {
switch(val) {
case ADD_VAL:
return OFPortReason.ADD;
case DELETE_VAL:
return OFPortReason.DELETE;
case MODIFY_VAL:
return OFPortReason.MODIFY;
default:
throw new IllegalArgumentException("Illegal wire value for type OFPortReason in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 181 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedCodeSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedCodeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedCodeSerializerVer14.java | 30 |
public class OFQueueOpFailedCodeSerializerVer10 {
public final static short BAD_PORT_VAL = (short) 0x0;
public final static short BAD_QUEUE_VAL = (short) 0x1;
public final static short EPERM_VAL = (short) 0x2;
public static OFQueueOpFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFQueueOpFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFQueueOpFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFQueueOpFailedCode ofWireValue(short val) {
switch(val) {
case BAD_PORT_VAL:
return OFQueueOpFailedCode.BAD_PORT;
case BAD_QUEUE_VAL:
return OFQueueOpFailedCode.BAD_QUEUE;
case EPERM_VAL:
return OFQueueOpFailedCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFQueueOpFailedCode in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModCommandSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModCommandSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModCommandSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModCommandSerializerVer14.java | 30 |
public class OFGroupModCommandSerializerVer11 {
public final static short ADD_VAL = (short) 0x0;
public final static short MODIFY_VAL = (short) 0x1;
public final static short DELETE_VAL = (short) 0x2;
public static OFGroupModCommand readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFGroupModCommand e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFGroupModCommand e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFGroupModCommand ofWireValue(short val) {
switch(val) {
case ADD_VAL:
return OFGroupModCommand.ADD;
case MODIFY_VAL:
return OFGroupModCommand.MODIFY;
case DELETE_VAL:
return OFGroupModCommand.DELETE;
default:
throw new IllegalArgumentException("Illegal wire value for type OFGroupModCommand in version 1.1: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 181 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 419 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 419 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 419 |
OFExperimenterErrorMsgVer12 other = (OFExperimenterErrorMsgVer12) obj;
if( xid != other.xid)
return false;
if( subtype != other.subtype)
return false;
if( experimenter != other.experimenter)
return false;
if (data == null) {
if (other.data != null)
return false;
} else if (!data.equals(other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + subtype;
result = prime * (int) (experimenter ^ (experimenter >>> 32));
result = prime * result + ((data == null) ? 0 : data.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 38 |
final static int LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static Set<OFStatsReplyFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsReplyFlags>of();
private final static long DEFAULT_TYPES = 0x0L;
private final static long DEFAULT_CAPABILITIES = 0x0L;
private final static long DEFAULT_MAX_GROUPS_ALL = 0x0L;
private final static long DEFAULT_MAX_GROUPS_SELECT = 0x0L;
private final static long DEFAULT_MAX_GROUPS_INDIRECT = 0x0L;
private final static long DEFAULT_MAX_GROUPS_FF = 0x0L;
private final static long DEFAULT_ACTIONS_ALL = 0x0L;
private final static long DEFAULT_ACTIONS_SELECT = 0x0L;
private final static long DEFAULT_ACTIONS_INDIRECT = 0x0L;
private final static long DEFAULT_ACTIONS_FF = 0x0L;
// OF message fields
private final long xid;
private final Set<OFStatsReplyFlags> flags;
private final long types;
private final long capabilities;
private final long maxGroupsAll;
private final long maxGroupsSelect;
private final long maxGroupsIndirect;
private final long maxGroupsFf;
private final long actionsAll;
private final long actionsSelect;
private final long actionsIndirect;
private final long actionsFf;
//
// Immutable default instance
final static OFGroupFeaturesStatsReplyVer12 DEFAULT = new OFGroupFeaturesStatsReplyVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 181 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropertiesSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropertiesSerializerVer13.java | 30 |
public class OFQueuePropertiesSerializerVer12 {
public final static short MIN_RATE_VAL = (short) 0x1;
public final static short MAX_RATE_VAL = (short) 0x2;
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFQueueProperties readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFQueueProperties e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFQueueProperties e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFQueueProperties ofWireValue(short val) {
switch(val) {
case MIN_RATE_VAL:
return OFQueueProperties.MIN_RATE;
case MAX_RATE_VAL:
return OFQueueProperties.MAX_RATE;
case EXPERIMENTER_VAL:
return OFQueueProperties.EXPERIMENTER;
default:
throw new IllegalArgumentException("Illegal wire value for type OFQueueProperties in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 108 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 182 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedCodeSerializerVer14.java | 30 |
public class OFRoleRequestFailedCodeSerializerVer12 {
public final static short STALE_VAL = (short) 0x0;
public final static short UNSUP_VAL = (short) 0x1;
public final static short BAD_ROLE_VAL = (short) 0x2;
public static OFRoleRequestFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFRoleRequestFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFRoleRequestFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFRoleRequestFailedCode ofWireValue(short val) {
switch(val) {
case STALE_VAL:
return OFRoleRequestFailedCode.STALE;
case UNSUP_VAL:
return OFRoleRequestFailedCode.UNSUP;
case BAD_ROLE_VAL:
return OFRoleRequestFailedCode.BAD_ROLE;
default:
throw new IllegalArgumentException("Illegal wire value for type OFRoleRequestFailedCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 108 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 182 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedCodeSerializerVer14.java | 30 |
public class OFSwitchConfigFailedCodeSerializerVer12 {
public final static short BAD_FLAGS_VAL = (short) 0x0;
public final static short BAD_LEN_VAL = (short) 0x1;
public final static short EPERM_VAL = (short) 0x2;
public static OFSwitchConfigFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFSwitchConfigFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFSwitchConfigFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFSwitchConfigFailedCode ofWireValue(short val) {
switch(val) {
case BAD_FLAGS_VAL:
return OFSwitchConfigFailedCode.BAD_FLAGS;
case BAD_LEN_VAL:
return OFSwitchConfigFailedCode.BAD_LEN;
case EPERM_VAL:
return OFSwitchConfigFailedCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFSwitchConfigFailedCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedCodeSerializerVer14.java | 30 |
public class OFTableModFailedCodeSerializerVer12 {
public final static short BAD_TABLE_VAL = (short) 0x0;
public final static short BAD_CONFIG_VAL = (short) 0x1;
public final static short EPERM_VAL = (short) 0x2;
public static OFTableModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFTableModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFTableModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFTableModFailedCode ofWireValue(short val) {
switch(val) {
case BAD_TABLE_VAL:
return OFTableModFailedCode.BAD_TABLE;
case BAD_CONFIG_VAL:
return OFTableModFailedCode.BAD_CONFIG;
case EPERM_VAL:
return OFTableModFailedCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFTableModFailedCode in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdNiciraVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdNiciraVer14.java | 34 |
public final static OFActionIdNiciraVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdNicira> {
@Override
public OFActionIdNicira readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
short subtype = bb.readShort();
bb.readerIndex(start);
switch(subtype) {
case (short) 0x12:
// discriminator value 0x12=0x12 for class OFActionIdNiciraDecTtlVer13
return OFActionIdNiciraDecTtlVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceStatusSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceStatusSerializerVer14.java | 30 |
public class OFBsnLacpConvergenceStatusSerializerVer13 {
public final static byte SUCCESS_VAL = (byte) 0x0;
public final static byte TIMEDOUT_VAL = (byte) 0x1;
public final static byte OUT_OF_SYNC_VAL = (byte) 0x2;
public static OFBsnLacpConvergenceStatus readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnLacpConvergenceStatus e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnLacpConvergenceStatus e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnLacpConvergenceStatus ofWireValue(byte val) {
switch(val) {
case SUCCESS_VAL:
return OFBsnLacpConvergenceStatus.SUCCESS;
case TIMEDOUT_VAL:
return OFBsnLacpConvergenceStatus.TIMEDOUT;
case OUT_OF_SYNC_VAL:
return OFBsnLacpConvergenceStatus.OUT_OF_SYNC;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnLacpConvergenceStatus in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnUdfAnchorSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnUdfAnchorSerializerVer14.java | 30 |
public class OFBsnUdfAnchorSerializerVer13 {
public final static short BSN_UDF_ANCHOR_PACKET_START_VAL = (short) 0x0;
public final static short BSN_UDF_ANCHOR_L3_HEADER_START_VAL = (short) 0x1;
public final static short BSN_UDF_ANCHOR_L4_HEADER_START_VAL = (short) 0x2;
public static OFBsnUdfAnchor readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnUdfAnchor e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBsnUdfAnchor e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBsnUdfAnchor ofWireValue(short val) {
switch(val) {
case BSN_UDF_ANCHOR_PACKET_START_VAL:
return OFBsnUdfAnchor.BSN_UDF_ANCHOR_PACKET_START;
case BSN_UDF_ANCHOR_L3_HEADER_START_VAL:
return OFBsnUdfAnchor.BSN_UDF_ANCHOR_L3_HEADER_START;
case BSN_UDF_ANCHOR_L4_HEADER_START_VAL:
return OFBsnUdfAnchor.BSN_UDF_ANCHOR_L4_HEADER_START;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnUdfAnchor in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 984 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 819 |
OFCalientFlowStatsEntryVer13 other = (OFCalientFlowStatsEntryVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if( priority != other.priority)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (adminStatus == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandTypeSerializerVer14.java | 30 |
public class OFMeterBandTypeSerializerVer13 {
public final static short DROP_VAL = (short) 0x1;
public final static short DSCP_REMARK_VAL = (short) 0x2;
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFMeterBandType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFMeterBandType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFMeterBandType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFMeterBandType ofWireValue(short val) {
switch(val) {
case DROP_VAL:
return OFMeterBandType.DROP;
case DSCP_REMARK_VAL:
return OFMeterBandType.DSCP_REMARK;
case EXPERIMENTER_VAL:
return OFMeterBandType.EXPERIMENTER;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeterBandType in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModCommandSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModCommandSerializerVer14.java | 30 |
public class OFMeterModCommandSerializerVer13 {
public final static short ADD_VAL = (short) 0x0;
public final static short MODIFY_VAL = (short) 0x1;
public final static short DELETE_VAL = (short) 0x2;
public static OFMeterModCommand readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFMeterModCommand e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFMeterModCommand e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFMeterModCommand ofWireValue(short val) {
switch(val) {
case ADD_VAL:
return OFMeterModCommand.ADD;
case MODIFY_VAL:
return OFMeterModCommand.MODIFY;
case DELETE_VAL:
return OFMeterModCommand.DELETE;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeterModCommand in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 181 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 182 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 182 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 181 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 182 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 182 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXPortStatsRequestVer10.java | 40 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXPortStatsRequestVer13.java | 39 |
public OVXPortStatsRequestVer10(long xid, Set<OFStatsRequestFlags> flags,
OFPort portNo) {
super(xid, flags, portNo);
// TODO Auto-generated constructor stub
}
@Override
public void devirtualize(final OVXSwitch sw) {
List<OFPortStatsEntry> entries = new LinkedList<OFPortStatsEntry>();
int length = 0;
if (this.getPortNo() == OFPort.ANY) {
for (OVXPort p : sw.getPorts().values()) {
OVXPortStatsReply reply = p.getPhysicalPort()
.getParentSwitch()
.getPortStat(p.getPhysicalPort().getPortNo().getShortPortNumber());
if (reply != null) {
/*
* Setting it here will also update the reference but this
* should not matter since we index our port stats struct by
* physical port number (so this info is not lost) and we
* always rewrite the port num to the virtual port number.
*/
OFPortStatsEntry entry=reply.getEntries().get(0).createBuilder().setPortNo(p.getPortNo()).build();
entries.add(entry); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 159 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 159 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 159 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 159 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 123 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 125 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 124 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 128 |
((VirtualizableAction) act).virtualize(sw,
this.approvedActions, ovxMatch);
} catch (final ActionVirtualizationDenied e) {
this.log.warn("Action {} could not be virtualized; error: {}",
act, e.getMessage());
ft.deleteFlowMod(ovxCookie);
sw.sendMsg(OVXMessageUtil.makeError(e.getErrorCode(), this), sw);
return;
} catch (final DroppedMessageException e) {
this.log.warn("Dropping flowmod {} {}", this, e);
ft.deleteFlowMod(ovxCookie);
// TODO perhaps send error message to controller
return;
}
}
final OVXPort ovxInPort = sw.getPort(inport);
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 247 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 367 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 241 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 367 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 241 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 247 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 373 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 288 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLogVer13.java | 286 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 367 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 241 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 247 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 373 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 288 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLogVer14.java | 286 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 367 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 241 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xaL
int subtype = bb.readInt();
if(subtype != 0xa) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 367 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 367 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellCommandVer10.java | 284 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellOutputVer10.java | 246 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 241 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 247 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 247 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 247 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 247 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x21L
int subtype = bb.readInt();
if(subtype != 0x21) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFlagsSerializerVer10.java | 40 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFlagsSerializerVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFlagsSerializerVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFlagsSerializerVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFlagsSerializerVer14.java | 43 |
public static Set<OFFlowModFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFFlowModFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFFlowModFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFFlowModFlags> ofWireValue(short val) {
EnumSet<OFFlowModFlags> set = EnumSet.noneOf(OFFlowModFlags.class);
if((val & SEND_FLOW_REM_VAL) != 0)
set.add(OFFlowModFlags.SEND_FLOW_REM);
if((val & CHECK_OVERLAP_VAL) != 0)
set.add(OFFlowModFlags.CHECK_OVERLAP); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 672 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 720 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 720 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 720 |
StringBuilder b = new StringBuilder("OFPortDescVer10(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("hwAddr=").append(hwAddr);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("config=").append(config);
b.append(", ");
b.append("state=").append(state);
b.append(", ");
b.append("curr=").append(curr);
b.append(", ");
b.append("advertised=").append(advertised);
b.append(", ");
b.append("supported=").append(supported);
b.append(", ");
b.append("peer=").append(peer);
b.append(")"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 272 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 272 |
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.1");
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
DatapathId datapathId = this.datapathIdSet ? this.datapathId : parentMessage.datapathId;
if(datapathId == null)
throw new NullPointerException("Property datapathId must not be null");
long nBuffers = this.nBuffersSet ? this.nBuffers : parentMessage.nBuffers;
short nTables = this.nTablesSet ? this.nTables : parentMessage.nTables;
Set<OFCapabilities> capabilities = this.capabilitiesSet ? this.capabilities : parentMessage.capabilities;
if(capabilities == null)
throw new NullPointerException("Property capabilities must not be null");
long reserved = this.reservedSet ? this.reserved : parentMessage.reserved;
List<OFPortDesc> ports = this.portsSet ? this.ports : parentMessage.ports;
if(ports == null)
throw new NullPointerException("Property ports must not be null");
//
return new OFFeaturesReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 184 |
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnGentableEntryDescStatsEntry build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 1049 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 864 |
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((adminStatus == null) ? 0 : adminStatus.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 184 |
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnGentableEntryDescStatsEntry build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXSwitch.java | 71 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXSwitch.java | 74 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXSwitch.java | 73 |
+ e.getMessage()), 0);
} catch (final InvalidDPIDException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid DPID : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
}
return resp;
}
@Override
public JSONRPC2ParamsType getType() {
return JSONRPC2ParamsType.OBJECT;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 45 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 45 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 45 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 45 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 45 |
private static final Logger logger = LoggerFactory.getLogger(OFFlowAddVer10.class);
// version: 1.0
final static byte WIRE_VERSION = 1;
final static int MINIMUM_LENGTH = 72;
private final static long DEFAULT_XID = 0x0L;
private final static Match DEFAULT_MATCH = OFFactoryVer10.MATCH_WILDCARD_ALL;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static List<OFAction> DEFAULT_ACTIONS = ImmutableList.<OFAction>of();
// OF message fields
protected long xid;
protected Match match;
protected U64 cookie;
protected int idleTimeout;
protected int hardTimeout;
protected int priority;
protected OFBufferId bufferId;
protected OFPort outPort;
protected Set<OFFlowModFlags> flags;
protected List<OFAction> actions;
//
// Immutable default instance
final static OFFlowAddVer10 DEFAULT = new OFFlowAddVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 128 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 128 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 134 |
}
// Accessors for OF message fields
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public U64 getRxFrameErr() {
return rxFrameErr;
}
@Override
public U64 getRxOverErr() {
return rxOverErr;
}
@Override
public U64 getRxCrcErr() {
return rxCrcErr;
}
@Override
public U64 getCollisions() {
return collisions;
}
@Override
public long getDurationSec()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchCodeSerializerVer11.java | 41 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchCodeSerializerVer12.java | 45 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchCodeSerializerVer13.java | 45 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchCodeSerializerVer14.java | 45 |
public static OFBadMatchCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadMatchCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadMatchCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadMatchCode ofWireValue(short val) {
switch(val) {
case BAD_TYPE_VAL:
return OFBadMatchCode.BAD_TYPE;
case BAD_LEN_VAL:
return OFBadMatchCode.BAD_LEN;
case BAD_TAG_VAL:
return OFBadMatchCode.BAD_TAG;
case BAD_DL_ADDR_MASK_VAL:
return OFBadMatchCode.BAD_DL_ADDR_MASK;
case BAD_NW_ADDR_MASK_VAL:
return OFBadMatchCode.BAD_NW_ADDR_MASK;
case BAD_WILDCARDS_VAL:
return OFBadMatchCode.BAD_WILDCARDS;
case BAD_FIELD_VAL:
return OFBadMatchCode.BAD_FIELD;
case BAD_VALUE_VAL:
return OFBadMatchCode.BAD_VALUE; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionSetFieldVer12.java | 157 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionSetFieldVer13.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionSetFieldVer14.java | 157 |
return new OFActionSetFieldVer12(
field
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionSetField> {
@Override
public OFActionSetField readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 25
short type = bb.readShort();
if(type != (short) 0x19)
throw new OFParseError("Wrong type: Expected=OFActionType.SET_FIELD(25), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFOxm<?> field = OFOxmVer12.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedCodeSerializerVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedCodeSerializerVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedCodeSerializerVer14.java | 43 |
public static OFFlowModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFFlowModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFFlowModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFFlowModFailedCode.UNKNOWN;
case TABLE_FULL_VAL:
return OFFlowModFailedCode.TABLE_FULL;
case BAD_TABLE_ID_VAL:
return OFFlowModFailedCode.BAD_TABLE_ID;
case OVERLAP_VAL:
return OFFlowModFailedCode.OVERLAP;
case EPERM_VAL:
return OFFlowModFailedCode.EPERM;
case BAD_TIMEOUT_VAL:
return OFFlowModFailedCode.BAD_TIMEOUT;
case BAD_COMMAND_VAL:
return OFFlowModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFFlowModFailedCode.BAD_FLAGS; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 177 |
@Override
public int getType() {
return 0x2;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDscpRemark.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDscpRemark.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public short getPrecLevel() {
return precLevel;
}
@Override
public OFMeterBandDscpRemark.Builder setPrecLevel(short precLevel) {
this.precLevel = precLevel;
this.precLevelSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterBandDscpRemark build() {
long rate = this.rateSet ? this.rate : parentMessage.rate; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 177 |
@Override
public int getType() {
return 0xffff;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandExperimenter.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandExperimenter.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFMeterBandExperimenter.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterBandExperimenter build() {
long rate = this.rateSet ? this.rate : parentMessage.rate; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 177 |
@Override
public int getType() {
return 0x2;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDscpRemark.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDscpRemark.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public short getPrecLevel() {
return precLevel;
}
@Override
public OFMeterBandDscpRemark.Builder setPrecLevel(short precLevel) {
this.precLevel = precLevel;
this.precLevelSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterBandDscpRemark build() {
long rate = this.rateSet ? this.rate : parentMessage.rate; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 177 |
@Override
public int getType() {
return 0xffff;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandExperimenter.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandExperimenter.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFMeterBandExperimenter.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterBandExperimenter build() {
long rate = this.rateSet ? this.rate : parentMessage.rate; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableModPropVacancyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModPropVacancyVer14.java | 177 |
@Override
public int getType() {
return 0x3;
}
@Override
public short getVacancyDown() {
return vacancyDown;
}
@Override
public OFTableModPropVacancy.Builder setVacancyDown(short vacancyDown) {
this.vacancyDown = vacancyDown;
this.vacancyDownSet = true;
return this;
}
@Override
public short getVacancyUp() {
return vacancyUp;
}
@Override
public OFTableModPropVacancy.Builder setVacancyUp(short vacancyUp) {
this.vacancyUp = vacancyUp;
this.vacancyUpSet = true;
return this;
}
@Override
public short getVacancy() {
return vacancy;
}
@Override
public OFTableModPropVacancy.Builder setVacancy(short vacancy) {
this.vacancy = vacancy;
this.vacancySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFTableModPropVacancy build() {
short vacancyDown = this.vacancyDownSet ? this.vacancyDown : parentMessage.vacancyDown; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/datapath/role/RoleManager.java | 186 |
| net/onrc/openvirtex/elements/datapath/role/RoleManagerV3.java | 161 |
final Map<Channel, Role> readOnly = Collections
.unmodifiableMap(this.currentState.get());
for (Channel chan : readOnly.keySet()) {
if (chan == null) {
continue;
}
checkAndSend(chan, msg);
}
}
}
public synchronized void removeChannel(Channel channel) {
this.state = getState();
this.state.remove(channel);
setState();
}
public synchronized void shutDown() {
this.state = getState();
for (Channel c : state.keySet()) {
if (c != null && c.isConnected()) {
c.close();
}
}
state.clear();
setState();
}
@Override
public String toString() {
return this.currentState.get().toString();
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnVer10.java | 35 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnVer11.java | 35 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnVer12.java | 35 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnVer13.java | 35 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnVer14.java | 35 |
public final static OFActionBsnVer10.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionBsn> {
@Override
public OFActionBsn readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x4:
// discriminator value 0x4L=0x4L for class OFActionBsnChecksumVer10
return OFActionBsnChecksumVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 506 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 506 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 506 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 506 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 506 |
StringBuilder b = new StringBuilder("OFBsnSetPktinSuppressionRequestVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("enabled=").append(enabled);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 447 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 447 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 447 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 447 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 447 |
StringBuilder b = new StringBuilder("OFBsnVportQInQVer10(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("ingressTpid=").append(ingressTpid);
b.append(", ");
b.append("ingressVlanId=").append(ingressVlanId);
b.append(", ");
b.append("egressTpid=").append(egressTpid);
b.append(", ");
b.append("egressVlanId=").append(egressVlanId);
b.append(", ");
b.append("ifName=").append(ifName);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 144 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 143 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 143 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 143 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 143 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property instructions not supported in version 1.0");
}
@Override
public List<OFAction> getActions() {
return actions;
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.0");
}
public OFFlowAdd.Builder createBuilder() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 491 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 501 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 501 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 501 |
StringBuilder b = new StringBuilder("OFPortModVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("hwAddr=").append(hwAddr);
b.append(", ");
b.append("config=").append(config);
b.append(", ");
b.append("mask=").append(mask);
b.append(", ");
b.append("advertise=").append(advertise);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionGroupVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionGroupVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionGroupVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionGroupVer14.java | 161 |
return new OFActionGroupVer11(
group
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionGroup> {
@Override
public OFActionGroup readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 22
short type = bb.readShort();
if(type != (short) 0x16)
throw new OFParseError("Wrong type: Expected=OFActionType.GROUP(22), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFGroup group = OFGroup.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 853 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 853 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 897 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 868 |
bb.writeByte((byte) 0x2);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 0
bb.writeByte((short) 0x0);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 853 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 853 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 893 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 868 |
bb.writeByte((byte) 0x2);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 4
bb.writeByte((short) 0x4);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 853 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 853 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 892 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 868 |
bb.writeByte((byte) 0x2);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 3
bb.writeByte((short) 0x3);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 853 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 853 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 893 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 868 |
bb.writeByte((byte) 0x2);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 2
bb.writeByte((short) 0x2);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 853 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 853 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 891 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 868 |
bb.writeByte((byte) 0x2);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 1
bb.writeByte((short) 0x1);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 730 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 730 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 730 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropEthernetVer14.java | 445 |
b.append(", ");
b.append("curr=").append(curr);
b.append(", ");
b.append("advertised=").append(advertised);
b.append(", ");
b.append("supported=").append(supported);
b.append(", ");
b.append("peer=").append(peer);
b.append(", ");
b.append("currSpeed=").append(currSpeed);
b.append(", ");
b.append("maxSpeed=").append(maxSpeed);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortFeaturesSerializerVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortFeaturesSerializerVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortFeaturesSerializerVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortFeaturesSerializerVer14.java | 107 |
set.add(OFPortFeatures.PF_OTHER);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortFeatures> set) {
int wireValue = 0;
for(OFPortFeatures e: set) {
switch(e) {
case PF_10MB_HD:
wireValue |= PF_10MB_HD_VAL;
break;
case PF_10MB_FD:
wireValue |= PF_10MB_FD_VAL;
break;
case PF_100MB_HD:
wireValue |= PF_100MB_HD_VAL;
break;
case PF_100MB_FD:
wireValue |= PF_100MB_FD_VAL;
break;
case PF_1GB_HD:
wireValue |= PF_1GB_HD_VAL;
break;
case PF_1GB_FD:
wireValue |= PF_1GB_FD_VAL;
break;
case PF_10GB_FD:
wireValue |= PF_10GB_FD_VAL;
break;
case PF_COPPER:
wireValue |= PF_COPPER_VAL;
break;
case PF_FIBER:
wireValue |= PF_FIBER_VAL;
break;
case PF_AUTONEG:
wireValue |= PF_AUTONEG_VAL;
break;
case PF_PAUSE:
wireValue |= PF_PAUSE_VAL;
break;
case PF_PAUSE_ASYM:
wireValue |= PF_PAUSE_ASYM_VAL;
break;
case PF_40GB_FD:
wireValue |= PF_40GB_FD_VAL;
break;
case PF_100GB_FD:
wireValue |= PF_100GB_FD_VAL;
break;
case PF_1TB_FD:
wireValue |= PF_1TB_FD_VAL;
break;
case PF_OTHER:
wireValue |= PF_OTHER_VAL;
break; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnVer13.java | 35 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnVer14.java | 35 |
public final static OFActionIdBsnVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdBsn> {
@Override
public OFActionIdBsn readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x4:
// discriminator value 0x4L=0x4L for class OFActionIdBsnChecksumVer13
return OFActionIdBsnChecksumVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvActorSystemMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvActorSystemMacVer14.java | 161 |
return new OFBsnTlvActorSystemMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvActorSystemMac> {
@Override
public OFBsnTlvActorSystemMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x29
short type = bb.readShort();
if(type != (short) 0x29)
throw new OFParseError("Wrong type: Expected=0x29(0x29), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvEthDstVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvEthDstVer14.java | 161 |
return new OFBsnTlvEthDstVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvEthDst> {
@Override
public OFBsnTlvEthDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x21
short type = bb.readShort();
if(type != (short) 0x21)
throw new OFParseError("Wrong type: Expected=0x21(0x21), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvEthSrcVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvEthSrcVer14.java | 161 |
return new OFBsnTlvEthSrcVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvEthSrc> {
@Override
public OFBsnTlvEthSrc readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x20
short type = bb.readShort();
if(type != (short) 0x20)
throw new OFParseError("Wrong type: Expected=0x20(0x20), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvExternalGatewayIpVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvExternalGatewayIpVer14.java | 161 |
return new OFBsnTlvExternalGatewayIpVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvExternalGatewayIp> {
@Override
public OFBsnTlvExternalGatewayIp readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1a
short type = bb.readShort();
if(type != (short) 0x1a)
throw new OFParseError("Wrong type: Expected=0x1a(0x1a), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvExternalGatewayMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvExternalGatewayMacVer14.java | 161 |
return new OFBsnTlvExternalGatewayMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvExternalGatewayMac> {
@Override
public OFBsnTlvExternalGatewayMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1d
short type = bb.readShort();
if(type != (short) 0x1d)
throw new OFParseError("Wrong type: Expected=0x1d(0x1d), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvExternalIpVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvExternalIpVer14.java | 161 |
return new OFBsnTlvExternalIpVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvExternalIp> {
@Override
public OFBsnTlvExternalIp readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x17
short type = bb.readShort();
if(type != (short) 0x17)
throw new OFParseError("Wrong type: Expected=0x17(0x17), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvExternalMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvExternalMacVer14.java | 161 |
return new OFBsnTlvExternalMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvExternalMac> {
@Override
public OFBsnTlvExternalMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x18
short type = bb.readShort();
if(type != (short) 0x18)
throw new OFParseError("Wrong type: Expected=0x18(0x18), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvExternalNetmaskVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvExternalNetmaskVer14.java | 161 |
return new OFBsnTlvExternalNetmaskVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvExternalNetmask> {
@Override
public OFBsnTlvExternalNetmask readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x19
short type = bb.readShort();
if(type != (short) 0x19)
throw new OFParseError("Wrong type: Expected=0x19(0x19), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvInternalGatewayMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvInternalGatewayMacVer14.java | 161 |
return new OFBsnTlvInternalGatewayMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvInternalGatewayMac> {
@Override
public OFBsnTlvInternalGatewayMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1c
short type = bb.readShort();
if(type != (short) 0x1c)
throw new OFParseError("Wrong type: Expected=0x1c(0x1c), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvInternalMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvInternalMacVer14.java | 161 |
return new OFBsnTlvInternalMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvInternalMac> {
@Override
public OFBsnTlvInternalMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1b
short type = bb.readShort();
if(type != (short) 0x1b)
throw new OFParseError("Wrong type: Expected=0x1b(0x1b), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIpv4DstVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIpv4DstVer14.java | 161 |
return new OFBsnTlvIpv4DstVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIpv4Dst> {
@Override
public OFBsnTlvIpv4Dst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x23
short type = bb.readShort();
if(type != (short) 0x23)
throw new OFParseError("Wrong type: Expected=0x23(0x23), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIpv4NetmaskVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIpv4NetmaskVer14.java | 161 |
return new OFBsnTlvIpv4NetmaskVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIpv4Netmask> {
@Override
public OFBsnTlvIpv4Netmask readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3c
short type = bb.readShort();
if(type != (short) 0x3c)
throw new OFParseError("Wrong type: Expected=0x3c(0x3c), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIpv4SrcVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIpv4SrcVer14.java | 161 |
return new OFBsnTlvIpv4SrcVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIpv4Src> {
@Override
public OFBsnTlvIpv4Src readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x22
short type = bb.readShort();
if(type != (short) 0x22)
throw new OFParseError("Wrong type: Expected=0x22(0x22), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIpv4Ver13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIpv4Ver14.java | 161 |
return new OFBsnTlvIpv4Ver13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvIpv4> {
@Override
public OFBsnTlvIpv4 readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x4
short type = bb.readShort();
if(type != (short) 0x4)
throw new OFParseError("Wrong type: Expected=0x4(0x4), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
IPv4Address value = IPv4Address.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvMacMaskVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvMacMaskVer14.java | 161 |
return new OFBsnTlvMacMaskVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvMacMask> {
@Override
public OFBsnTlvMacMask readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x38
short type = bb.readShort();
if(type != (short) 0x38)
throw new OFParseError("Wrong type: Expected=0x38(0x38), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvMacVer14.java | 161 |
return new OFBsnTlvMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvMac> {
@Override
public OFBsnTlvMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPartnerSystemMacVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPartnerSystemMacVer14.java | 161 |
return new OFBsnTlvPartnerSystemMacVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPartnerSystemMac> {
@Override
public OFBsnTlvPartnerSystemMac readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x30
short type = bb.readShort();
if(type != (short) 0x30)
throw new OFParseError("Wrong type: Expected=0x30(0x30), got="+type);
int length = U16.f(bb.readShort());
if(length != 10)
throw new OFParseError("Wrong length: Expected=10(10), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
MacAddress value = MacAddress.read6Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPortVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPortVer14.java | 161 |
return new OFBsnTlvPortVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPort> {
@Override
public OFBsnTlvPort readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFPort value = OFPort.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvVlanVidVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvVlanVidVer14.java | 161 |
return new OFBsnTlvVlanVidVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvVlanVid> {
@Override
public OFBsnTlvVlanVid readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x6
short type = bb.readShort();
if(type != (short) 0x6)
throw new OFParseError("Wrong type: Expected=0x6(0x6), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
VlanVid value = VlanVid.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsEntryVer13.java | 462 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 625 |
StringBuilder b = new StringBuilder("OFCalientPortDescStatsEntryVer13(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("hwAddr=").append(hwAddr);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("config=").append(config);
b.append(", ");
b.append("state=").append(state);
b.append(", ");
b.append("properties=").append(properties);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnVer14.java | 34 |
public final static OFInstructionBsnVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionBsn> {
@Override
public OFInstructionBsn readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x1:
// discriminator value 0x1L=0x1L for class OFInstructionBsnArpOffloadVer13
return OFInstructionBsnArpOffloadVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnVer14.java | 34 |
public final static OFInstructionIdBsnVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdBsn> {
@Override
public OFInstructionIdBsn readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x1:
// discriminator value 0x1L=0x1L for class OFInstructionIdBsnArpOffloadVer13
return OFInstructionIdBsnArpOffloadVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 481 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 481 |
public void write(ChannelBuffer bb, OFTableFeaturesVer13 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
message.tableId.writeByte(bb);
// pad: 5 bytes
bb.writeZero(5);
ChannelUtils.writeFixedLengthString(bb, message.name, 32);
bb.writeLong(message.metadataMatch.getValue());
bb.writeLong(message.metadataWrite.getValue());
bb.writeInt(U32.t(message.config));
bb.writeInt(U32.t(message.maxEntries));
ChannelUtils.writeList(bb, message.properties);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFTableFeaturesVer13("); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 222 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 176 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 176 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 176 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 176 |
this.bufferId=OFBufferId.of(bufferId);
if (ovxInPort == null) {
if (this.getMatch().isFullyWildcarded(MatchField.IN_PORT)) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
int wcard = ((OFMatchV1)this.match).getWildcards()
& (~OFMatchV1Ver10.OFPFW_IN_PORT);
this.match=((OFMatchV1)this.match).createBuilder().setWildcards(wcard).build();
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private boolean isActionViolates(List<OFAction> origActions) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 379 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 376 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 376 |
throw new NullPointerException("Property match must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 103 |
throw new NullPointerException("OFFlowAddVer11: property instructions cannot be null");
}
this.xid = xid;
this.cookie = cookie;
this.cookieMask = cookieMask;
this.tableId = tableId;
this.idleTimeout = idleTimeout;
this.hardTimeout = hardTimeout;
this.priority = priority;
this.bufferId = bufferId;
this.outPort = outPort;
this.outGroup = outGroup;
this.flags = flags;
this.match = match;
this.instructions = instructions;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 615 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 630 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 630 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 630 |
throw new OFParseError("Wrong length: Expected=136(136), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong());
int priority = U16.f(bb.readShort());
short reason = U8.f(bb.readByte());
TableId tableId = TableId.readByte(bb);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int idleTimeout = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.FLOW(1), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 7
short statsType = bb.readShort();
if(statsType != (short) 0x7)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.GROUP_DESC(7), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 6
short statsType = bb.readShort();
if(statsType != (short) 0x6)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.GROUP(6), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 4
short statsType = bb.readShort();
if(statsType != (short) 0x4)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.PORT(4), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 5
short statsType = bb.readShort();
if(statsType != (short) 0x5)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.QUEUE(5), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 3
short statsType = bb.readShort();
if(statsType != (short) 0x3)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.TABLE(3), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 501 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 501 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 501 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.AGGREGATE(2), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 103 |
throw new NullPointerException("OFFlowAddVer12: property instructions cannot be null");
}
this.xid = xid;
this.cookie = cookie;
this.cookieMask = cookieMask;
this.tableId = tableId;
this.idleTimeout = idleTimeout;
this.hardTimeout = hardTimeout;
this.priority = priority;
this.bufferId = bufferId;
this.outPort = outPort;
this.outGroup = outGroup;
this.flags = flags;
this.match = match;
this.instructions = instructions;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 501 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 501 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 501 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.FLOW(1), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 130 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 142 |
throw new IllegalArgumentException("Illegal wire value for type OFType in version 1.2: " + val);
}
}
public static byte toWireValue(OFType e) {
switch(e) {
case HELLO:
return HELLO_VAL;
case ERROR:
return ERROR_VAL;
case ECHO_REQUEST:
return ECHO_REQUEST_VAL;
case ECHO_REPLY:
return ECHO_REPLY_VAL;
case EXPERIMENTER:
return EXPERIMENTER_VAL;
case FEATURES_REQUEST:
return FEATURES_REQUEST_VAL;
case FEATURES_REPLY:
return FEATURES_REPLY_VAL;
case GET_CONFIG_REQUEST:
return GET_CONFIG_REQUEST_VAL;
case GET_CONFIG_REPLY:
return GET_CONFIG_REPLY_VAL;
case SET_CONFIG:
return SET_CONFIG_VAL;
case PACKET_IN:
return PACKET_IN_VAL;
case FLOW_REMOVED:
return FLOW_REMOVED_VAL;
case PORT_STATUS:
return PORT_STATUS_VAL;
case PACKET_OUT:
return PACKET_OUT_VAL;
case FLOW_MOD:
return FLOW_MOD_VAL;
case GROUP_MOD:
return GROUP_MOD_VAL;
case PORT_MOD:
return PORT_MOD_VAL;
case TABLE_MOD:
return TABLE_MOD_VAL;
case STATS_REQUEST:
return STATS_REQUEST_VAL;
case STATS_REPLY:
return STATS_REPLY_VAL;
case BARRIER_REQUEST:
return BARRIER_REQUEST_VAL;
case BARRIER_REPLY:
return BARRIER_REPLY_VAL;
case QUEUE_GET_CONFIG_REQUEST:
return QUEUE_GET_CONFIG_REQUEST_VAL;
case QUEUE_GET_CONFIG_REPLY:
return QUEUE_GET_CONFIG_REPLY_VAL;
case ROLE_REQUEST:
return ROLE_REQUEST_VAL;
case ROLE_REPLY:
return ROLE_REPLY_VAL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 346 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 346 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 308 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 353 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 517 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 353 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 192 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 192 |
return new OFBsnGentableEntryStatsEntryVer13(
key,
stats
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnGentableEntryStatsEntry> {
@Override
public OFBsnGentableEntryStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int keyLength = U16.f(bb.readShort());
List<OFBsnTlv> key = ChannelUtils.readList(bb, keyLength, OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 37 |
final static int LENGTH = 36;
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static int DEFAULT_ACTOR_SYS_PRIORITY = 0x0;
private final static MacAddress DEFAULT_ACTOR_SYS_MAC = MacAddress.NONE;
private final static int DEFAULT_ACTOR_PORT_PRIORITY = 0x0;
private final static int DEFAULT_ACTOR_PORT_NUM = 0x0;
private final static int DEFAULT_ACTOR_KEY = 0x0;
private final static short DEFAULT_CONVERGENCE_STATUS = (short) 0x0;
private final static int DEFAULT_PARTNER_SYS_PRIORITY = 0x0;
private final static MacAddress DEFAULT_PARTNER_SYS_MAC = MacAddress.NONE;
private final static int DEFAULT_PARTNER_PORT_PRIORITY = 0x0;
private final static int DEFAULT_PARTNER_PORT_NUM = 0x0;
private final static int DEFAULT_PARTNER_KEY = 0x0;
// OF message fields
private final OFPort portNo;
private final int actorSysPriority;
private final MacAddress actorSysMac;
private final int actorPortPriority;
private final int actorPortNum;
private final int actorKey;
private final short convergenceStatus;
private final int partnerSysPriority;
private final MacAddress partnerSysMac;
private final int partnerPortPriority;
private final int partnerPortNum;
private final int partnerKey;
//
// Immutable default instance
final static OFBsnLacpStatsEntryVer13 DEFAULT = new OFBsnLacpStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 104 |
throw new NullPointerException("OFFlowAddVer13: property instructions cannot be null");
}
this.xid = xid;
this.cookie = cookie;
this.cookieMask = cookieMask;
this.tableId = tableId;
this.idleTimeout = idleTimeout;
this.hardTimeout = hardTimeout;
this.priority = priority;
this.bufferId = bufferId;
this.outPort = outPort;
this.outGroup = outGroup;
this.flags = flags;
this.match = match;
this.instructions = instructions;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 10
short statsType = bb.readShort();
if(statsType != (short) 0xa)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.METER_CONFIG(10), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 9
short statsType = bb.readShort();
if(statsType != (short) 0x9)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.METER(9), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 13
short statsType = bb.readShort();
if(statsType != (short) 0xd)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.PORT_DESC(13), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 279 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
//System.out.println("Buffer doesnt have all data..but continue");
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 12
short statsType = bb.readShort();
if(statsType != (short) 0xc)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.TABLE_FEATURES(12), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 12
short statsType = bb.readShort();
if(statsType != (short) 0xc)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.TABLE_FEATURES(12), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x16L
int subtype = bb.readInt();
if(subtype != 0x16) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetRequestVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesRequestVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetRequestVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesRequestVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetRequestVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsRequestVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetRequestVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesRequestVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineRequestVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x15L
int subtype = bb.readInt();
if(subtype != 0x15) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellStatusVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x14L
int subtype = bb.readInt();
if(subtype != 0x14) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetRequestVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataRequestVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataRequestVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataRequestVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataRequestVer14.java | 200 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x13L
int subtype = bb.readInt();
if(subtype != 0x13) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 279 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 245 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 279 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 283 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 245 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x17L
int subtype = bb.readInt();
if(subtype != 0x17) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskRequestVer10.java | 238 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetIpMaskVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableReplyVer10.java | 314 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetL2TableRequestVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 276 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnRoleStatusVer13.java | 331 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 397 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xbL
int subtype = bb.readInt();
if(subtype != 0xb) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketQueueVer10.java | 102 |
| org/projectfloodlight/openflow/protocol/ver10/OFPacketQueueVer10.java | 163 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property port not supported in version 1.0");
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property port not supported in version 1.0");
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFPacketQueue build() {
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFStatsTypeSerializerVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFStatsTypeSerializerVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsTypeSerializerVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsTypeSerializerVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsTypeSerializerVer14.java | 49 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFStatsType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFStatsType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFStatsType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFStatsType ofWireValue(short val) {
switch(val) {
case DESC_VAL:
return OFStatsType.DESC;
case FLOW_VAL:
return OFStatsType.FLOW;
case AGGREGATE_VAL:
return OFStatsType.AGGREGATE;
case TABLE_VAL:
return OFStatsType.TABLE;
case PORT_VAL:
return OFStatsType.PORT;
case QUEUE_VAL:
return OFStatsType.QUEUE;
case EXPERIMENTER_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 321 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 321 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 321 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 321 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 321 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 321 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 321 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 321 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x20L
int subtype = bb.readInt();
if(subtype != 0x20) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketQueueVer11.java | 102 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketQueueVer11.java | 163 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property port not supported in version 1.1");
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property port not supported in version 1.1");
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFPacketQueue build() {
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnChecksumVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnGentableVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnMirrorVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnSetTunnelDstVer13.java | 84 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnChecksumVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnGentableVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnMirrorVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnSetTunnelDstVer14.java | 84 |
public OFActionIdBsnChecksum readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 331 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 677 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 52)
throw new OFParseError("Wrong length: Expected=52(52), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x30L
int subtype = bb.readInt();
if(subtype != 0x30) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 454 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 539 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 539 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 454 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 539 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 539 |
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
if (checksumMask == null) {
if (other.checksumMask != null)
return false;
} else if (!checksumMask.equals(other.checksumMask))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 245 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 245 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 272)
throw new OFParseError("Wrong length: Expected=272(272), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x34L
int subtype = bb.readInt();
if(subtype != 0x34) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 677 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 331 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 52)
throw new OFParseError("Wrong length: Expected=52(52), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2bL
int subtype = bb.readInt();
if(subtype != 0x2b) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 85 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 85 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x29L;
}
@Override
public short getEnabled() {
return enabled;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public int getActorSysPriority() {
return actorSysPriority;
}
@Override
public MacAddress getActorSysMac() {
return actorSysMac;
}
@Override
public int getActorPortPriority() {
return actorPortPriority;
}
@Override
public int getActorPortNum() {
return actorPortNum;
}
@Override
public int getActorKey() {
return actorKey;
}
public OFBsnSetLacpRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnSetLacpRequest.Builder {
final OFBsnSetLacpRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 245 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 245 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 272)
throw new OFParseError("Wrong length: Expected=272(272), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x35L
int subtype = bb.readInt();
if(subtype != 0x35) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnArpOffloadVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnAutoNegotiationVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDenyVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDhcpOffloadVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableL3Ver13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableSplitHorizonCheckVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableSrcMacCheckVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableVlanCountersVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnInternalPriorityVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPacketOfDeathVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPermitVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPrioritizePdusVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnRequireVlanXlateVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnSpanDestinationVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnArpOffloadVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnAutoNegotiationVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDenyVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDhcpOffloadVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableL3Ver14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableSrcMacCheckVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableVlanCountersVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnInternalPriorityVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPacketOfDeathVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPermitVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPrioritizePdusVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnRequireVlanXlateVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnSpanDestinationVer14.java | 83 |
public OFInstructionBsnArpOffload readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnArpOffloadVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnAutoNegotiationVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDenyVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDhcpOffloadVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableL3Ver13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableSplitHorizonCheckVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableSrcMacCheckVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableVlanCountersVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnInternalPriorityVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPacketOfDeathVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPermitVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPrioritizePdusVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnRequireVlanXlateVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnSpanDestinationVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnArpOffloadVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnAutoNegotiationVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDenyVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDhcpOffloadVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableL3Ver14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableSrcMacCheckVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableVlanCountersVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnInternalPriorityVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPacketOfDeathVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPermitVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPrioritizePdusVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnRequireVlanXlateVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnSpanDestinationVer14.java | 83 |
public OFInstructionIdBsnArpOffload readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x1L
int subtype = bb.readInt();
if(subtype != 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 233 |
}
@Override
public OFMeterStats build() {
long meterId = this.meterIdSet ? this.meterId : parentMessage.meterId;
long flowCount = this.flowCountSet ? this.flowCount : parentMessage.flowCount;
U64 packetInCount = this.packetInCountSet ? this.packetInCount : parentMessage.packetInCount;
if(packetInCount == null)
throw new NullPointerException("Property packetInCount must not be null");
U64 byteInCount = this.byteInCountSet ? this.byteInCount : parentMessage.byteInCount;
if(byteInCount == null)
throw new NullPointerException("Property byteInCount must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
List<OFMeterBandStats> bandStats = this.bandStatsSet ? this.bandStats : parentMessage.bandStats;
if(bandStats == null)
throw new NullPointerException("Property bandStats must not be null");
//
return new OFMeterStatsVer13( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketInVer10.java | 195 |
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 197 |
link = map.getVirtualSwitch(sw, lUtils.getTenantId())
.getMap().getVirtualNetwork(lUtils.getTenantId())
.getLink(dstPort, srcPort);
} catch (SwitchMappingException | NetworkMappingException e) {
return; // same as (link == null)
}
this.ovxPort = this.port.getOVXPort(lUtils.getTenantId(),
link.getLinkId());
OVXLinkField linkField = OpenVirteXController.getInstance()
.getOvxLinkField();
// TODO: Need to check that the values in linkId and flowId
// don't exceed their space
if (linkField == OVXLinkField.MAC_ADDRESS) {
try {
LinkedList<MACAddress> macList = sw.getMap()
.getVirtualNetwork(this.ovxPort.getTenantId())
.getFlowManager()
.getFlowValues(lUtils.getFlowId());
eth.setSourceMACAddress(macList.get(0).toBytes())
.setDestinationMACAddress(
macList.get(1).toBytes()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 758 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 756 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 756 |
b.append("match=").append(match);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("actions=").append(actions); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 114 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 186 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 186 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 186 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 186 |
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 186 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 114 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 114 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFGetConfigReply.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFGetConfigReply.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
//
@Override
public OFGetConfigReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 863 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 863 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 863 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 901 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 848 |
b.append("portNo=").append(portNo);
b.append(", ");
b.append("rxPackets=").append(rxPackets);
b.append(", ");
b.append("txPackets=").append(txPackets);
b.append(", ");
b.append("rxBytes=").append(rxBytes);
b.append(", ");
b.append("txBytes=").append(txBytes);
b.append(", ");
b.append("rxDropped=").append(rxDropped);
b.append(", ");
b.append("txDropped=").append(txDropped);
b.append(", ");
b.append("rxErrors=").append(rxErrors);
b.append(", ");
b.append("txErrors=").append(txErrors);
b.append(", ");
b.append("rxFrameErr=").append(rxFrameErr); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 118 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 192 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 192 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 192 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigReplyVer10.java | 192 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 118 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 118 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 118 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigReply.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFPacketQueue> getQueues() {
return queues;
}
@Override
public OFQueueGetConfigReply.Builder setQueues(List<OFPacketQueue> queues) {
this.queues = queues;
this.queuesSet = true;
return this;
}
//
@Override
public OFQueueGetConfigReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 114 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 186 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 186 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 186 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 186 |
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 186 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 114 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 114 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.SET_CONFIG;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFSetConfig.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public Set<OFConfigFlags> getFlags() {
return flags;
}
@Override
public OFSetConfig.Builder setFlags(Set<OFConfigFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public int getMissSendLen() {
return missSendLen;
}
@Override
public OFSetConfig.Builder setMissSendLen(int missSendLen) {
this.missSendLen = missSendLen;
this.missSendLenSet = true;
return this;
}
//
@Override
public OFSetConfig build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 499 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 521 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 521 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 10
byte type = bb.readByte();
if(type != (byte) 0xa)
throw new OFParseError("Wrong type: Expected=OFType.PACKET_IN(10), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
int totalLen = U16.f(bb.readShort());
OFPacketInReason reason = OFPacketInReasonSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 571 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 571 |
bb.writeByte((byte) 0x4);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// fixed value property length = 38
bb.writeShort((short) 0x26);
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x29L
bb.writeInt(0x29);
bb.writeByte(U8.t(message.enabled));
// pad: 3 bytes
bb.writeZero(3);
message.portNo.write4Bytes(bb);
bb.writeShort(U16.t(message.actorSysPriority));
message.actorSysMac.write6Bytes(bb);
bb.writeShort(U16.t(message.actorPortPriority));
bb.writeShort(U16.t(message.actorPortNum));
bb.writeShort(U16.t(message.actorKey));
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnSetLacpRequestVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvActorStateVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvActorStateVer14.java | 162 |
return new OFBsnTlvActorStateVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvActorState> {
@Override
public OFBsnTlvActorState readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x35
short type = bb.readShort();
if(type != (short) 0x35)
throw new OFParseError("Wrong type: Expected=0x35(0x35), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
Set<OFBsnLacpState> value = OFBsnLacpStateSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPartnerStateVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPartnerStateVer14.java | 162 |
return new OFBsnTlvPartnerStateVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvPartnerState> {
@Override
public OFBsnTlvPartnerState readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x36
short type = bb.readShort();
if(type != (short) 0x36)
throw new OFParseError("Wrong type: Expected=0x36(0x36), got="+type);
int length = U16.f(bb.readShort());
if(length != 5)
throw new OFParseError("Wrong length: Expected=5(5), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
Set<OFBsnLacpState> value = OFBsnLacpStateSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/MonitoringService.java | 42 |
| net/onrc/openvirtex/api/service/TenantService.java | 42 |
this.dispatcher.register(new MonitoringHandler());
}
@Override
public void handle(final HttpServletRequest request,
final HttpServletResponse response) {
JSONRPC2Request json = null;
JSONRPC2Response jsonResp = null;
try {
json = this.parseJSONRequest(request);
jsonResp = this.dispatcher.process(json, null);
jsonResp.setID(json.getID());
} catch (final IOException e) {
jsonResp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.PARSE_ERROR.getCode(),
AbstractService.stack2string(e)), 0);
} catch (final JSONRPC2ParseException e) {
jsonResp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.PARSE_ERROR.getCode(),
AbstractService.stack2string(e)), 0);
}
try {
this.writeJSONObject(response, jsonResp);
} catch (final IOException e) { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPortStatusVer10.java | 196 |
| net/onrc/openvirtex/messages/ver13/OVXPortStatusVer13.java | 188 |
&& ((OFPortStateSerializerVer10.toWireValue(plink.getSrcPort().getState()) & OFPortStateSerializerVer10.LINK_DOWN_VAL) == 0)) {
log.debug("enabling OVXLink mapped to port {}");
/*
* try to switch back to original path, if not just
* bring up and hope it's working
*/
if (!vlink.tryRevert(plink)) {
vlink.getSrcPort().handlePortEnable(this);
}
}
}
}
}
if (map.hasSwitchRoutes(plink, tid)) {
Set<SwitchRoute> routes = new HashSet<SwitchRoute>(
map.getSwitchRoutes(plink, tid));
for (SwitchRoute route : routes) {
/*
* try to recover, remove route if we fail, but don't send any
* stat up
*/
if ((isReason(OFPortReason.DELETE))
|| (isReason(OFPortReason.MODIFY) & isState(OFPortState.LINK_DOWN))) {
if (!route.tryRecovery(plink)) {
route.getSrcPort().handleRouteDisable(this);
}
}
}
}
}
public boolean isReason(OFPortReason reason) {
return this.reason == reason; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 328 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 196 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 199 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 197 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 201 |
&& (this.getMatch().get(MatchField.ETH_DST) != null || this.getMatch().get(MatchField.ETH_SRC) != null)) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV3)this.match).get(MatchField.ETH_SRC).getBytes(),
((OFMatchV3)this.match).get(MatchField.ETH_DST).getBytes());
OVXLinkUtils lUtils = new OVXLinkUtils(
sw.getTenantId(), link.getLinkId(), flowId); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 2
short errType = bb.readShort();
if(errType != (short) 0x2)
throw new OFParseError("Wrong errType: Expected=OFErrorType.BAD_ACTION(2), got="+errType);
OFBadActionCode code = OFBadActionCodeSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 1
short errType = bb.readShort();
if(errType != (short) 0x1)
throw new OFParseError("Wrong errType: Expected=OFErrorType.BAD_REQUEST(1), got="+errType);
OFBadRequestCode code = OFBadRequestCodeSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnBwClearDataReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long enabled = this.enabledSet ? this.enabled : parentMessage.enabled;
//
return new OFBsnBwEnableGetReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long enable = this.enableSet ? this.enable : parentMessage.enable;
//
return new OFBsnBwEnableSetRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
short reportMirrorPorts = this.reportMirrorPortsSet ? this.reportMirrorPorts : parentMessage.reportMirrorPorts;
//
return new OFBsnGetMirroringReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
short reportMirrorPorts = this.reportMirrorPortsSet ? this.reportMirrorPorts : parentMessage.reportMirrorPorts;
//
return new OFBsnGetMirroringRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
short reportMirrorPorts = this.reportMirrorPortsSet ? this.reportMirrorPorts : parentMessage.reportMirrorPorts;
//
return new OFBsnSetMirroringVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnSetPktinSuppressionReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnVirtualPortRemoveReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long vportNo = this.vportNoSet ? this.vportNo : parentMessage.vportNo;
//
return new OFBsnVirtualPortRemoveRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportStatusSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportStatusSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportStatusSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportStatusSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportStatusSerializerVer14.java | 30 |
public class OFBsnVportStatusSerializerVer10 {
public final static short BSN_VPORT_STATUS_OK_VAL = (short) 0x0;
public final static short BSN_VPORT_STATUS_FAILED_VAL = (short) 0x1;
public static OFBsnVportStatus readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(U8.f(bb.readByte()));
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnVportStatus e) {
bb.writeByte(U8.t(toWireValue(e)));
}
public static void putTo(OFBsnVportStatus e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBsnVportStatus ofWireValue(short val) {
switch(val) {
case BSN_VPORT_STATUS_OK_VAL:
return OFBsnVportStatus.BSN_VPORT_STATUS_OK;
case BSN_VPORT_STATUS_FAILED_VAL:
return OFBsnVportStatus.BSN_VPORT_STATUS_FAILED;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnVportStatus in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 96 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 95 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 95 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 95 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 95 |
throw new NullPointerException("OFFlowAddVer10: property actions cannot be null");
}
this.xid = xid;
this.match = match;
this.cookie = cookie;
this.idleTimeout = idleTimeout;
this.hardTimeout = hardTimeout;
this.priority = priority;
this.bufferId = bufferId;
this.outPort = outPort;
this.flags = flags;
this.actions = actions;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public TableId getTableId()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property tableId not supported in version 1.0");
}
@Override
public OFFlowModCommand getCommand() {
return OFFlowModCommand.ADD; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 0
short errType = bb.readShort();
if(errType != (short) 0x0)
throw new OFParseError("Wrong errType: Expected=OFErrorType.HELLO_FAILED(0), got="+errType);
OFHelloFailedCode code = OFHelloFailedCodeSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 3
short errType = bb.readShort();
if(errType != (short) 0x3)
throw new OFParseError("Wrong errType: Expected=OFErrorType.BAD_INSTRUCTION(3), got="+errType);
OFBadInstructionCode code = OFBadInstructionCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 4
short errType = bb.readShort();
if(errType != (short) 0x4)
throw new OFParseError("Wrong errType: Expected=OFErrorType.BAD_MATCH(4), got="+errType);
OFBadMatchCode code = OFBadMatchCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 5
short errType = bb.readShort();
if(errType != (short) 0x5)
throw new OFParseError("Wrong errType: Expected=OFErrorType.FLOW_MOD_FAILED(5), got="+errType);
OFFlowModFailedCode code = OFFlowModFailedCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 318 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 318 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0)
throw new OFParseError("Wrong command: Expected=OFGroupModCommand.ADD(0), got="+command);
OFGroupType groupType = OFGroupTypeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 318 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 318 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 2
short command = bb.readShort();
if(command != (short) 0x2)
throw new OFParseError("Wrong command: Expected=OFGroupModCommand.DELETE(2), got="+command);
OFGroupType groupType = OFGroupTypeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 6
short errType = bb.readShort();
if(errType != (short) 0x6)
throw new OFParseError("Wrong errType: Expected=OFErrorType.GROUP_MOD_FAILED(6), got="+errType);
OFGroupModFailedCode code = OFGroupModFailedCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 318 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 318 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 1
short command = bb.readShort();
if(command != (short) 0x1)
throw new OFParseError("Wrong command: Expected=OFGroupModCommand.MODIFY(1), got="+command);
OFGroupType groupType = OFGroupTypeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 7
short errType = bb.readShort();
if(errType != (short) 0x7)
throw new OFParseError("Wrong errType: Expected=OFErrorType.PORT_MOD_FAILED(7), got="+errType);
OFPortModFailedCode code = OFPortModFailedCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 9
short errType = bb.readShort();
if(errType != (short) 0x9)
throw new OFParseError("Wrong errType: Expected=OFErrorType.QUEUE_OP_FAILED(9), got="+errType);
OFQueueOpFailedCode code = OFQueueOpFailedCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 10
short errType = bb.readShort();
if(errType != (short) 0xa)
throw new OFParseError("Wrong errType: Expected=OFErrorType.SWITCH_CONFIG_FAILED(10), got="+errType);
OFSwitchConfigFailedCode code = OFSwitchConfigFailedCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 8
short errType = bb.readShort();
if(errType != (short) 0x8)
throw new OFParseError("Wrong errType: Expected=OFErrorType.TABLE_MOD_FAILED(8), got="+errType);
OFTableModFailedCode code = OFTableModFailedCodeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 179 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFPacketQueue build() {
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 11
short errType = bb.readShort();
if(errType != (short) 0xb)
throw new OFParseError("Wrong errType: Expected=OFErrorType.ROLE_REQUEST_FAILED(11), got="+errType);
OFRoleRequestFailedCode code = OFRoleRequestFailedCodeSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public OFBsnDebugCounterDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
//
@Override
public OFBsnDebugCounterDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public OFBsnDebugCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnDebugCounterStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
//
@Override
public OFBsnDebugCounterStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x27L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long enabled = this.enabledSet ? this.enabled : parentMessage.enabled;
//
return new OFBsnFlowIdleEnableGetReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x24L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long enable = this.enableSet ? this.enable : parentMessage.enable;
//
return new OFBsnFlowIdleEnableSetRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public OFBsnGentableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
//
@Override
public OFBsnGentableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public OFBsnGentableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGentableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnGentableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
//
@Override
public OFBsnGentableStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public OFBsnImageDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnImageDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnImageDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
//
@Override
public OFBsnImageDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public OFBsnLacpStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLacpStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnLacpStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
//
@Override
public OFBsnLacpStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3aL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long numAux = this.numAuxSet ? this.numAux : parentMessage.numAux;
//
return new OFBsnSetAuxCxnsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x36L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long status = this.statusSet ? this.status : parentMessage.status;
//
return new OFBsnSetSwitchPipelineReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public OFBsnSwitchPipelineStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnSwitchPipelineStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
//
@Override
public OFBsnSwitchPipelineStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 191 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public OFBsnTableChecksumStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 191 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 119 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFBsnTableChecksumStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
//
@Override
public OFBsnTableChecksumStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 369 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 369 |
}
//
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : DEFAULT_GROUP_ID;
if(group == null)
throw new NullPointerException("Property group must not be null");
long refCount = this.refCountSet ? this.refCount : DEFAULT_REF_COUNT;
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
List<OFBucketCounter> bucketStats = this.bucketStatsSet ? this.bucketStats : DEFAULT_BUCKET_STATS;
if(bucketStats == null)
throw new NullPointerException("Property bucketStats must not be null");
return new OFGroupStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 174 |
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterConfig.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfig.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfig.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterConfig build() {
int flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 12
short errType = bb.readShort();
if(errType != (short) 0xc)
throw new OFParseError("Wrong errType: Expected=OFErrorType.METER_MOD_FAILED(12), got="+errType);
OFMeterModFailedCode code = OFMeterModFailedCodeSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 179 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPacketQueue build() {
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 13
short errType = bb.readShort();
if(errType != (short) 0xd)
throw new OFParseError("Wrong errType: Expected=OFErrorType.TABLE_FEATURES_FAILED(13), got="+errType);
OFTableFeaturesFailedCode code = OFTableFeaturesFailedCodeSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 174 |
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterConfig.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfig.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfig.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterConfig build() {
int flags = this.flagsSet ? this.flags : parentMessage.flags; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 179 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFPacketQueue build() {
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescVer14.java | 174 |
@Override
public long getPortNo() {
return portNo;
}
@Override
public OFQueueDesc.Builder setPortNo(long portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFQueueDesc.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public List<OFQueueDescProp> getProperties() {
return properties;
}
@Override
public OFQueueDesc.Builder setProperties(List<OFQueueDescProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFQueueDesc build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 224 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 991 |
else if(of_message_type.equals("OFFlowRemovedVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowRemoved(((OFFlowRemoved)message).getXid(), ((OFFlowRemoved)message).getCookie(), ((OFFlowRemoved)message).getPriority(), ((OFFlowRemoved)message).getReason(), ((OFFlowRemoved)message).getTableId(), ((OFFlowRemoved)message).getDurationSec(), ((OFFlowRemoved)message).getDurationNsec(), ((OFFlowRemoved)message).getIdleTimeout(), ((OFFlowRemoved)message).getHardTimeout(),((OFFlowRemoved)message).getPacketCount(), ((OFFlowRemoved)message).getByteCount(), ((OFFlowRemoved)message).getMatch());
else if(of_message_type.equals("OFGetConfigReplyVer13")) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 112 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 624 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 614 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 614 |
} else if (!actions.equals(other.actions))
return false;
if (ports == null) {
if (other.ports != null)
return false;
} else if (!ports.equals(other.ports))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((datapathId == null) ? 0 : datapathId.hashCode());
result = prime * (int) (nBuffers ^ (nBuffers >>> 32));
result = prime * result + nTables;
result = prime * result + ((capabilities == null) ? 0 : capabilities.hashCode());
result = prime * result + ((actions == null) ? 0 : actions.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 345 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 359 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 359 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 316 |
}
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : parentMessage.config;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 842 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 878 |
bb.writeZero(6);
bb.writeLong(message.rxPackets.getValue());
bb.writeLong(message.txPackets.getValue());
bb.writeLong(message.rxBytes.getValue());
bb.writeLong(message.txBytes.getValue());
bb.writeLong(message.rxDropped.getValue());
bb.writeLong(message.txDropped.getValue());
bb.writeLong(message.rxErrors.getValue());
bb.writeLong(message.txErrors.getValue());
bb.writeLong(message.rxFrameErr.getValue());
bb.writeLong(message.rxOverErr.getValue());
bb.writeLong(message.rxCrcErr.getValue());
bb.writeLong(message.collisions.getValue()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 359 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 359 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 359 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 40)
throw new OFParseError("Wrong length: Expected=40(40), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.AGGREGATE(2), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 112 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 456 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 456 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 456 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 456 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 1072)
throw new OFParseError("Wrong length: Expected=1072(1072), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.DESC(0), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.DESC(0), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 7
short statsType = bb.readShort();
if(statsType != (short) 0x7)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.GROUP_DESC(7), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 6
short statsType = bb.readShort();
if(statsType != (short) 0x6)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.GROUP(6), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 4
short statsType = bb.readShort();
if(statsType != (short) 0x4)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.PORT(4), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 314 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 314 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 314 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 314 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 5
short statsType = bb.readShort();
if(statsType != (short) 0x5)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.QUEUE(5), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 3
short statsType = bb.readShort();
if(statsType != (short) 0x3)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.TABLE(3), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionTypeSerializerVer14.java | 30 |
public class OFActionTypeSerializerVer12 {
public final static short OUTPUT_VAL = (short) 0x0;
public final static short COPY_TTL_OUT_VAL = (short) 0xb;
public final static short COPY_TTL_IN_VAL = (short) 0xc;
public final static short SET_MPLS_TTL_VAL = (short) 0xf;
public final static short DEC_MPLS_TTL_VAL = (short) 0x10;
public final static short PUSH_VLAN_VAL = (short) 0x11;
public final static short POP_VLAN_VAL = (short) 0x12;
public final static short PUSH_MPLS_VAL = (short) 0x13;
public final static short POP_MPLS_VAL = (short) 0x14;
public final static short SET_QUEUE_VAL = (short) 0x15;
public final static short GROUP_VAL = (short) 0x16;
public final static short SET_NW_TTL_VAL = (short) 0x17;
public final static short DEC_NW_TTL_VAL = (short) 0x18;
public final static short SET_FIELD_VAL = (short) 0x19;
public final static short EXPERIMENTER_VAL = (short) 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 112 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 611 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 611 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 611 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 56)
throw new OFParseError("Wrong length: Expected=56(56), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 8
short statsType = bb.readShort();
if(statsType != (short) 0x8)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.GROUP_FEATURES(8), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 8
short statsType = bb.readShort();
if(statsType != (short) 0x8)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.GROUP_FEATURES(8), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 112 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 179 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public long getTableId() {
return tableId;
}
@Override
public OFActionBsnGentable.Builder setTableId(long tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFActionBsnGentable.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFActionBsnGentable build() {
long tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 112 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x39L;
}
@Override
public List<OFBsnControllerConnection> getConnections() {
return connections;
}
@Override
public OFBsnControllerConnectionsReply.Builder setConnections(List<OFBsnControllerConnection> connections) {
this.connections = connections;
this.connectionsSet = true;
return this;
}
@Override
public OFBsnControllerConnectionsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 261 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 306 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 25)
throw new OFParseError("Wrong length: Expected=25(25), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 302 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 299 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 302 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 299 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 26)
throw new OFParseError("Wrong length: Expected=26(26), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 392 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 392 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 392 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 392 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 60)
throw new OFParseError("Wrong length: Expected=60(60), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 112 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 351 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 536)
throw new OFParseError("Wrong length: Expected=536(536), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 299 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 299 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 28)
throw new OFParseError("Wrong length: Expected=28(28), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 30 |
public class OFErrorTypeSerializerVer13 {
public final static short HELLO_FAILED_VAL = (short) 0x0;
public final static short BAD_REQUEST_VAL = (short) 0x1;
public final static short BAD_ACTION_VAL = (short) 0x2;
public final static short BAD_INSTRUCTION_VAL = (short) 0x3;
public final static short BAD_MATCH_VAL = (short) 0x4;
public final static short FLOW_MOD_FAILED_VAL = (short) 0x5;
public final static short GROUP_MOD_FAILED_VAL = (short) 0x6;
public final static short PORT_MOD_FAILED_VAL = (short) 0x7;
public final static short TABLE_MOD_FAILED_VAL = (short) 0x8;
public final static short QUEUE_OP_FAILED_VAL = (short) 0x9;
public final static short SWITCH_CONFIG_FAILED_VAL = (short) 0xa;
public final static short ROLE_REQUEST_FAILED_VAL = (short) 0xb;
public final static short METER_MOD_FAILED_VAL = (short) 0xc;
public final static short TABLE_FEATURES_FAILED_VAL = (short) 0xd;
public final static short EXPERIMENTER_VAL = (short) 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 105 |
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements() {
return elements;
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) {
this.elements = elements;
this.elementsSet = true;
return this;
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
List<OFHelloElem> elements = this.elementsSet ? this.elements : parentMessage.elements;
if(elements == null)
throw new NullPointerException("Property elements must not be null");
//
return new OFHelloVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 269 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 269 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 10
short statsType = bb.readShort();
if(statsType != (short) 0xa)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.METER_CONFIG(10), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 272 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 272 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 11
short statsType = bb.readShort();
if(statsType != (short) 0xb)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.METER_FEATURES(11), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 11
short statsType = bb.readShort();
if(statsType != (short) 0xb)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.METER_FEATURES(11), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 269 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 269 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 9
short statsType = bb.readShort();
if(statsType != (short) 0x9)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.METER(9), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 13
short statsType = bb.readShort();
if(statsType != (short) 0xd)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.PORT_DESC(13), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFStatsTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsTypeSerializerVer14.java | 30 |
public class OFStatsTypeSerializerVer13 {
public final static short DESC_VAL = (short) 0x0;
public final static short FLOW_VAL = (short) 0x1;
public final static short AGGREGATE_VAL = (short) 0x2;
public final static short TABLE_VAL = (short) 0x3;
public final static short PORT_VAL = (short) 0x4;
public final static short QUEUE_VAL = (short) 0x5;
public final static short GROUP_VAL = (short) 0x6;
public final static short GROUP_DESC_VAL = (short) 0x7;
public final static short GROUP_FEATURES_VAL = (short) 0x8;
public final static short METER_VAL = (short) 0x9;
public final static short METER_CONFIG_VAL = (short) 0xa;
public final static short METER_FEATURES_VAL = (short) 0xb;
public final static short TABLE_FEATURES_VAL = (short) 0xc;
public final static short PORT_DESC_VAL = (short) 0xd;
public final static short EXPERIMENTER_VAL = (short) 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropTypeSerializerVer14.java | 30 |
public class OFTableFeaturePropTypeSerializerVer13 {
public final static short INSTRUCTIONS_VAL = (short) 0x0;
public final static short INSTRUCTIONS_MISS_VAL = (short) 0x1;
public final static short NEXT_TABLES_VAL = (short) 0x2;
public final static short NEXT_TABLES_MISS_VAL = (short) 0x3;
public final static short WRITE_ACTIONS_VAL = (short) 0x4;
public final static short WRITE_ACTIONS_MISS_VAL = (short) 0x5;
public final static short APPLY_ACTIONS_VAL = (short) 0x6;
public final static short APPLY_ACTIONS_MISS_VAL = (short) 0x7;
public final static short MATCH_VAL = (short) 0x8;
public final static short WILDCARDS_VAL = (short) 0xa;
public final static short WRITE_SETFIELD_VAL = (short) 0xc;
public final static short WRITE_SETFIELD_MISS_VAL = (short) 0xd;
public final static short APPLY_SETFIELD_VAL = (short) 0xe;
public final static short APPLY_SETFIELD_MISS_VAL = (short) 0xf;
public final static short EXPERIMENTER_VAL = (short) 0xfffe; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 112 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 179 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public long getTableId() {
return tableId;
}
@Override
public OFActionBsnGentable.Builder setTableId(long tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFActionBsnGentable.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFActionBsnGentable build() {
long tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 112 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x39L;
}
@Override
public List<OFBsnControllerConnection> getConnections() {
return connections;
}
@Override
public OFBsnControllerConnectionsReply.Builder setConnections(List<OFBsnControllerConnection> connections) {
this.connections = connections;
this.connectionsSet = true;
return this;
}
@Override
public OFBsnControllerConnectionsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 112 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 179 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 110 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 103 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 103 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 103 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 103 |
private List<OFAction> approvedActions = new LinkedList<OFAction>();
private long ovxCookie = -1;
@Override
public void devirtualize(final OVXSwitch sw) {
/* Drop LLDP-matching messages sent by some applications */
if (((OFMatchV1)this.match).getEthType().getValue() == Ethernet.TYPE_LLDP) {
return;
}
this.sw = sw;
FlowTable ft = this.sw.getFlowTable();
int bufferId = OFBufferId.NO_BUFFER.getInt();
if (sw.getFromBufferMap(this.bufferId.getInt()) != null) {
bufferId = sw.getFromBufferMap(this.bufferId.getInt()).getBufferId().getInt();
}
final short inport = ((OFMatchV1)this.getMatch()).getInPort().getShortPortNumber(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFMatchV1Ver10.java | 2369 |
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 631 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 633 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 631 |
StringBuilder b = new StringBuilder("OFMatchV1Ver10(");
boolean first = true;
for(MatchField<?> field : getMatchFields()) {
if(first)
first = false;
else
b.append(", ");
String name = field.getName();
b.append(name).append('=').append(this.get(field));
if(isPartiallyMasked(field)) {
b.append('/').append(this.getMasked(field).getMask());
}
}
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 477 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 499 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 521 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 521 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 10
byte type = bb.readByte();
if(type != (byte) 0xa)
throw new OFParseError("Wrong type: Expected=OFType.PACKET_IN(10), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
int totalLen = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 813 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 813 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 813 |
public void funnel(OFPortStatsEntryVer10 message, PrimitiveSink sink) {
message.portNo.putTo(sink);
// skip pad (6 bytes)
message.rxPackets.putTo(sink);
message.txPackets.putTo(sink);
message.rxBytes.putTo(sink);
message.txBytes.putTo(sink);
message.rxDropped.putTo(sink);
message.txDropped.putTo(sink);
message.rxErrors.putTo(sink);
message.txErrors.putTo(sink);
message.rxFrameErr.putTo(sink);
message.rxOverErr.putTo(sink);
message.rxCrcErr.putTo(sink);
message.collisions.putTo(sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFPortStatsEntryVer10> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 485 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 480 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 480 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 522 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 576 |
OFQueueStatsEntryVer10 other = (OFQueueStatsEntryVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( queueId != other.queueId)
return false;
if (txBytes == null) {
if (other.txBytes != null)
return false;
} else if (!txBytes.equals(other.txBytes))
return false;
if (txPackets == null) {
if (other.txPackets != null)
return false;
} else if (!txPackets.equals(other.txPackets))
return false;
if (txErrors == null) {
if (other.txErrors != null)
return false;
} else if (!txErrors.equals(other.txErrors))
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 154 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.1");
}
public OFFlowAdd.Builder createBuilder() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedCodeSerializerVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedCodeSerializerVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedCodeSerializerVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedCodeSerializerVer14.java | 43 |
public static OFFlowModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFFlowModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFFlowModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFFlowModFailedCode.UNKNOWN;
case TABLE_FULL_VAL:
return OFFlowModFailedCode.TABLE_FULL;
case BAD_TABLE_ID_VAL:
return OFFlowModFailedCode.BAD_TABLE_ID;
case OVERLAP_VAL:
return OFFlowModFailedCode.OVERLAP;
case EPERM_VAL:
return OFFlowModFailedCode.EPERM;
case BAD_TIMEOUT_VAL:
return OFFlowModFailedCode.BAD_TIMEOUT;
case BAD_COMMAND_VAL:
return OFFlowModFailedCode.BAD_COMMAND; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 154 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.2");
}
@Override
public int getImportance()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property importance not supported in version 1.2");
}
public OFFlowAdd.Builder createBuilder() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsEntryVer13.java | 148 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsEntryVer14.java | 148 |
return new OFBsnGenericStatsEntryVer13(
tlvs
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnGenericStatsEntry> {
@Override
public OFBsnGenericStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFBsnTlv> tlvs = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFBsnTlvVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUdfAnchorVer13.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUdfAnchorVer14.java | 157 |
return new OFBsnTlvUdfAnchorVer13(
value
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnTlvUdfAnchor> {
@Override
public OFBsnTlvUdfAnchor readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x10
short type = bb.readShort();
if(type != (short) 0x10)
throw new OFParseError("Wrong type: Expected=0x10(0x10), got="+type);
int length = U16.f(bb.readShort());
if(length != 6)
throw new OFParseError("Wrong length: Expected=6(6), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFBsnUdfAnchor value = OFBsnUdfAnchorSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 387 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 387 |
OFMeterFeaturesVer13 other = (OFMeterFeaturesVer13) obj;
if( maxMeter != other.maxMeter)
return false;
if( bandTypes != other.bandTypes)
return false;
if( capabilities != other.capabilities)
return false;
if( maxBands != other.maxBands)
return false;
if( maxColor != other.maxColor)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (maxMeter ^ (maxMeter >>> 32));
result = prime * (int) (bandTypes ^ (bandTypes >>> 32));
result = prime * (int) (capabilities ^ (capabilities >>> 32));
result = prime * result + maxBands;
result = prime * result + maxColor;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellOutputVer10.java | 111 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellOutputVer10.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnShellOutput.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnShellOutput.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnShellOutput build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 733 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 733 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 733 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 733 |
OFBsnVportL2GreFlagsSerializerVer11.writeTo(bb, message.flags);
message.portNo.write4Bytes(bb);
message.loopbackPortNo.write4Bytes(bb);
message.localMac.write6Bytes(bb);
message.nhMac.write6Bytes(bb);
message.srcIp.write4Bytes(bb);
message.dstIp.write4Bytes(bb);
bb.writeByte(U8.t(message.dscp));
bb.writeByte(U8.t(message.ttl));
// pad: 2 bytes
bb.writeZero(2);
bb.writeInt(U32.t(message.vpn));
bb.writeInt(U32.t(message.rateLimit));
ChannelUtils.writeFixedLengthString(bb, message.ifName, 16);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnVportL2GreVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002a02L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOp.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ArpOpcode getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpOp build() {
ArpOpcode value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpSha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpSha build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002c04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpSpa build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpTha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpTha build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmArpTpa build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30e04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnEgrPortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30601L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowed.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnGlobalVrfAllowed build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x30010L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFBitMask128 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnInPorts128 build() {
OFBitMask128 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x32640L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFBitMask512 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnInPorts512 build() {
OFBitMask512 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x32804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnIngressPortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x32401L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHit.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL2CacheHit build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30c04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL3DstClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL3InterfaceClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30a04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnL3SrcClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30204L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagId.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public LagId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnLagId build() {
LagId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x32002L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlags.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public U16 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnTcpFlags build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31004L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf0 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31204L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf1 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31404L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf2 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31604L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf3 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31804L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf4 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31a04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf5 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31c04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf6 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7Ver12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7Ver12.java | 172 |
@Override
public long getTypeLen() {
return 0x31e04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnUdf7 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x32204L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnVlanXlatePortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x30404L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrf.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public VRF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmBsnVrf build() {
VRF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000606L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmEthDst build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000806L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmEthSrc build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000a02L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthType.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public EthType getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmEthType build() {
EthType value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002801L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4Code.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ICMPv4Code getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv4Code build() {
ICMPv4Code value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002601L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4Type.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public ICMPv4Type getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv4Type build() {
ICMPv4Type value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003c01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Code.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv6Code build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003a01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Type.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIcmpv6Type build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000204L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmInPhyPort build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000004L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmInPort build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001001L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscp.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IpDscp getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpDscp build() {
IpDscp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001201L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcn.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IpEcn getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpEcn build() {
IpEcn value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001401L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProto.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IpProtocol getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpProto build() {
IpProtocol value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001804L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv4Dst build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001604L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv4Src build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003610L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Dst.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6Dst build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003804L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6Flabel.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv6FlowLabel getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6Flabel build() {
IPv6FlowLabel value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80004006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6NdSll build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003e10L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTarget.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6NdTarget build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80004206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6NdTll build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80003410L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Src.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmIpv6Src build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000408L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadata.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFMetadata getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmMetadata build() {
OFMetadata value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80004404L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabel.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public U32 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmMplsLabel build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80004601L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTc.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmMplsTc build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002402L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmSctpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002202L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmSctpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001c02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTcpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001a02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTcpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x14004L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTunnelIpv4Dst build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x13e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmTunnelIpv4Src build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80002002L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmUdpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80001e02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmUdpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000e01L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcp.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public VlanPcp getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmVlanPcp build() {
VlanPcp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidVer12.java | 172 |
@Override
public long getTypeLen() {
return 0x80000c02L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVid.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2");
}
@Override
public OFVlanVidMatch getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.2");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFOxmVlanVid build() {
OFVlanVidMatch value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x42L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x41L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaNotification.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x43L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaNotification.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaNotification build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002a02L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOp.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ArpOpcode getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpOp build() {
ArpOpcode value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpSha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpSha build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002c04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpSpa build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpTha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpTha build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmArpTpa build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30e04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnEgrPortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30601L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowed.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnGlobalVrfAllowed build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x30010L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFBitMask128 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInPorts128 build() {
OFBitMask128 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x32640L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFBitMask512 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInPorts512 build() {
OFBitMask512 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnIngressPortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32c06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInnerEthDst build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32e06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnInnerEthSrc build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32401L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHit.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL2CacheHit build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30c04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL3DstClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL3InterfaceClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30a04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnL3SrcClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30204L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagId.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public LagId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnLagId build() {
LagId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32002L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlags.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U16 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnTcpFlags build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31004L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf0 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31204L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf1 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31404L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf2 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31604L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf3 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31804L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf4 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31a04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf5 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31c04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf6 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7Ver13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7Ver13.java | 172 |
@Override
public long getTypeLen() {
return 0x31e04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnUdf7 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32204L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnVlanXlatePortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x30404L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrf.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public VRF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnVrf build() {
VRF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x32a04L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkId.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U32 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmBsnVxlanNetworkId build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000606L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmEthDst build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000806L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmEthSrc build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000a02L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthType.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public EthType getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmEthType build() {
EthType value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002801L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4Code.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ICMPv4Code getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv4Code build() {
ICMPv4Code value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002601L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4Type.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public ICMPv4Type getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv4Type build() {
ICMPv4Type value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003c01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Code.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv6Code build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003a01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Type.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIcmpv6Type build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000204L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmInPhyPort build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000004L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmInPort build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001001L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscp.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IpDscp getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpDscp build() {
IpDscp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001201L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcn.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IpEcn getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpEcn build() {
IpEcn value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001401L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProto.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IpProtocol getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpProto build() {
IpProtocol value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001804L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv4Dst build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001604L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv4Src build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003610L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Dst.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6Dst build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004e02L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6Exthdr.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U16 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6Exthdr build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003804L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6Flabel.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv6FlowLabel getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6Flabel build() {
IPv6FlowLabel value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6NdSll build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003e10L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTarget.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6NdTarget build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6NdTll build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80003410L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Src.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmIpv6Src build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000408L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadata.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFMetadata getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMetadata build() {
OFMetadata value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004801L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBos.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMplsBos build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004404L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabel.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U32 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMplsLabel build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004601L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTc.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmMplsTc build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigidBasicVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigidBasicVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80005a06L;
}
@Override
public CircuitSignalID getValue() {
return value;
}
@Override
public OFOxmOchSigidBasic.Builder setValue(CircuitSignalID value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<CircuitSignalID> getMatchField() {
return MatchField.OCH_SIGID_BASIC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<CircuitSignalID> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public CircuitSignalID getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmOchSigidBasic build() {
CircuitSignalID value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigidVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigidVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x85a06L;
}
@Override
public CircuitSignalID getValue() {
return value;
}
@Override
public OFOxmOchSigid.Builder setValue(CircuitSignalID value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<CircuitSignalID> getMatchField() {
return MatchField.OCH_SIGID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<CircuitSignalID> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public CircuitSignalID getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmOchSigid build() {
CircuitSignalID value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigtypeBasicVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigtypeBasicVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80005801L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmOchSigtypeBasic.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.OCH_SIGTYPE_BASIC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmOchSigtypeBasic build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigtypeVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmOchSigtypeVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x85801L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmOchSigtype.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.OCH_SIGTYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmOchSigtype build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002402L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmSctpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002202L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmSctpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001c02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTcpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001a02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTcpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80004c08L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelId.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public U64 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTunnelId build() {
U64 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x14004L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTunnelIpv4Dst build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x13e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmTunnelIpv4Src build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80002002L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmUdpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80001e02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmUdpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000e01L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcp.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public VlanPcp getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmVlanPcp build() {
VlanPcp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidVer13.java | 172 |
@Override
public long getTypeLen() {
return 0x80000c02L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVid.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3");
}
@Override
public OFVlanVidMatch getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.3");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFOxmVlanVid build() {
OFVlanVidMatch value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x42L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x41L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 178 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaNotification.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x43L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaNotification.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaNotification build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 880 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 880 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 880 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 880 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 880 |
bb.writeByte((short) 0x0);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
OFFlowModFlagsSerializerVer14.writeTo(bb, message.flags);
bb.writeShort(U16.t(message.importance));
message.match.writeTo(bb);
ChannelUtils.writeList(bb, message.instructions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowAddVer14("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002a02L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOp.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ArpOpcode getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpOp build() {
ArpOpcode value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpSha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpSha build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002c04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpSpa build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpTha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpTha build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmArpTpa build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x30e04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnEgrPortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x30010L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFBitMask128 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInPorts128 build() {
OFBitMask128 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x32640L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFBitMask512 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInPorts512 build() {
OFBitMask512 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x32804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnIngressPortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x32c06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInnerEthDst build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x32e06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnInnerEthSrc build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x30804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnL3InterfaceClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x30a04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnL3SrcClassId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x30204L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagId.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public LagId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnLagId build() {
LagId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x32002L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlags.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U16 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnTcpFlags build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31004L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf0 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31204L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf1 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31404L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf2 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31604L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf3 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31804L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf4 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31a04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf5 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31c04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf6 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7Ver14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7Ver14.java | 172 |
@Override
public long getTypeLen() {
return 0x31e04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public UDF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnUdf7 build() {
UDF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x32204L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ClassId getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnVlanXlatePortGroupId build() {
ClassId value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x30404L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrf.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public VRF getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnVrf build() {
VRF value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x32a04L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkId.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U32 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmBsnVxlanNetworkId build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000606L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmEthDst build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000806L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmEthSrc build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000a02L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthType.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public EthType getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmEthType build() {
EthType value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002801L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4Code.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ICMPv4Code getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv4Code build() {
ICMPv4Code value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002601L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4Type.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public ICMPv4Type getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv4Type build() {
ICMPv4Type value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003c01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Code.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv6Code build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003a01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Type.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIcmpv6Type build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000204L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmInPhyPort build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000004L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmInPort build() {
OFPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001001L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscp.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IpDscp getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpDscp build() {
IpDscp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001201L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcn.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IpEcn getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpEcn build() {
IpEcn value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001401L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProto.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IpProtocol getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpProto build() {
IpProtocol value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001804L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv4Dst build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001604L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv4Src build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003610L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Dst.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6Dst build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004e02L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6Exthdr.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U16 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6Exthdr build() {
U16 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003804L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6Flabel.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv6FlowLabel getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6Flabel build() {
IPv6FlowLabel value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6NdSll build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003e10L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTarget.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6NdTarget build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public MacAddress getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6NdTll build() {
MacAddress value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80003410L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Src.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv6Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmIpv6Src build() {
IPv6Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000408L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadata.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFMetadata getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMetadata build() {
OFMetadata value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004801L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBos.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMplsBos build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004404L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabel.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U32 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMplsLabel build() {
U32 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004601L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTc.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U8 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmMplsTc build() {
U8 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmPbbUcaVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmPbbUcaVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80005201L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmPbbUca.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.PBB_UCA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFBooleanValue getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmPbbUca build() {
OFBooleanValue value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002402L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmSctpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002202L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmSctpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001c02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTcpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001a02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTcpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80004c08L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelId.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public U64 getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTunnelId build() {
U64 value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x14004L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTunnelIpv4Dst build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x13e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public IPv4Address getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmTunnelIpv4Src build() {
IPv4Address value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80002002L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmUdpDst build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80001e02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public TransportPort getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmUdpSrc build() {
TransportPort value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000e01L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcp.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public VlanPcp getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmVlanPcp build() {
VlanPcp value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidVer14.java | 172 |
@Override
public long getTypeLen() {
return 0x80000c02L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVid.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.4");
}
@Override
public OFVlanVidMatch getMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property mask not supported in version 1.4");
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFOxmVlanVid build() {
OFVlanVidMatch value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnBwClearDataReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
//
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long enabled = this.enabledSet ? this.enabled : DEFAULT_ENABLED;
return new OFBsnBwEnableGetReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
//
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long enable = this.enableSet ? this.enable : DEFAULT_ENABLE;
return new OFBsnBwEnableSetRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
//
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
short reportMirrorPorts = this.reportMirrorPortsSet ? this.reportMirrorPorts : DEFAULT_REPORT_MIRROR_PORTS;
return new OFBsnGetMirroringReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
//
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
short reportMirrorPorts = this.reportMirrorPortsSet ? this.reportMirrorPorts : DEFAULT_REPORT_MIRROR_PORTS;
return new OFBsnGetMirroringRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
//
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
short reportMirrorPorts = this.reportMirrorPortsSet ? this.reportMirrorPorts : DEFAULT_REPORT_MIRROR_PORTS;
return new OFBsnSetMirroringVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnSetPktinSuppressionReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnVirtualPortRemoveReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long vportNo = this.vportNoSet ? this.vportNo : DEFAULT_VPORT_NO;
return new OFBsnVirtualPortRemoveRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 104 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 104 |
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFEchoReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 104 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 104 |
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
byte[] data = this.dataSet ? this.data : parentMessage.data;
if(data == null)
throw new NullPointerException("Property data must not be null");
//
return new OFEchoRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 101 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 101 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 101 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 101 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public Match getMatch() {
return match;
}
public OFAggregateStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFAggregateStatsRequest.Builder {
final OFAggregateStatsRequestVer11 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 101 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 101 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 101 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 101 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.FLOW;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getCookieMask() {
return cookieMask;
}
@Override
public Match getMatch() {
return match;
}
public OFFlowStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFFlowStatsRequest.Builder {
final OFFlowStatsRequestVer11 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 277 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 277 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 277 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 17
byte type = bb.readByte();
if(type != (byte) 0x11)
throw new OFParseError("Wrong type: Expected=OFType.TABLE_MOD(17), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
TableId tableId = TableId.readByte(bb);
// pad: 3 bytes
bb.skipBytes(3);
long config = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestCodeSerializerVer14.java | 30 |
public class OFBadRequestCodeSerializerVer13 {
public final static short BAD_VERSION_VAL = (short) 0x0;
public final static short BAD_TYPE_VAL = (short) 0x1;
public final static short BAD_STAT_VAL = (short) 0x2;
public final static short BAD_EXPERIMENTER_VAL = (short) 0x3;
public final static short BAD_EXPERIMENTER_TYPE_VAL = (short) 0x4;
public final static short EPERM_VAL = (short) 0x5;
public final static short BAD_LEN_VAL = (short) 0x6;
public final static short BUFFER_EMPTY_VAL = (short) 0x7;
public final static short BUFFER_UNKNOWN_VAL = (short) 0x8;
public final static short BAD_TABLE_ID_VAL = (short) 0x9;
public final static short IS_SLAVE_VAL = (short) 0xa;
public final static short BAD_PORT_VAL = (short) 0xb;
public final static short BAD_PACKET_VAL = (short) 0xc;
public final static short MULTIPART_BUFFER_OVERFLOW_VAL = (short) 0xd;
public static OFBadRequestCode readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x27L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
//
@Override
public OFBsnFlowIdleEnableGetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long enabled = this.enabledSet ? this.enabled : DEFAULT_ENABLED;
return new OFBsnFlowIdleEnableGetReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x24L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
//
@Override
public OFBsnFlowIdleEnableSetRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long enable = this.enableSet ? this.enable : DEFAULT_ENABLE;
return new OFBsnFlowIdleEnableSetRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3aL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
//
@Override
public OFBsnSetAuxCxnsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long numAux = this.numAuxSet ? this.numAux : DEFAULT_NUM_AUX;
return new OFBsnSetAuxCxnsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x36L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnSetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
long status = this.statusSet ? this.status : DEFAULT_STATUS;
return new OFBsnSetSwitchPipelineReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 218 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 217 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 0
byte type = bb.readByte();
if(type != (byte) 0x0)
throw new OFParseError("Wrong type: Expected=OFType.HELLO(0), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
List<OFHelloElem> elements = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFHelloElemVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 227 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 321 |
public OFPortOptical build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : parentMessage.config;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null");
List<OFPortDescPropOpticalTransport> desc = this.descSet ? this.desc : parentMessage.desc; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 216 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 216 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 216 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 216 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 3
byte type = bb.readByte();
if(type != (byte) 0x3)
throw new OFParseError("Wrong type: Expected=OFType.ECHO_REPLY(3), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 216 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 216 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 216 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 216 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 216 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 2
byte type = bb.readByte();
if(type != (byte) 0x2)
throw new OFParseError("Wrong type: Expected=OFType.ECHO_REQUEST(2), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 184 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 184 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 184 |
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatusVer10.java | 184 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatusVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.PORT_STATUS;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPortReason getReason() {
return reason;
}
@Override
public OFPortStatus.Builder setReason(OFPortReason reason) {
this.reason = reason;
this.reasonSet = true;
return this;
}
@Override
public OFPortDesc getDesc() {
return desc;
}
@Override
public OFPortStatus.Builder setDesc(OFPortDesc desc) {
this.desc = desc;
this.descSet = true;
return this;
}
//
@Override
public OFPortStatus build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 721 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 740 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 740 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 740 |
StringBuilder b = new StringBuilder("OFFlowRemovedVer11(");
b.append("xid=").append(xid);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("reason=").append(reason);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("packetCount=").append(packetCount); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 505 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 505 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 551 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 551 |
} else if (!byteCount.equals(other.byteCount))
return false;
if (bucketStats == null) {
if (other.bucketStats != null)
return false;
} else if (!bucketStats.equals(other.bucketStats))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((group == null) ? 0 : group.hashCode());
result = prime * (int) (refCount ^ (refCount >>> 32));
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * result + ((bucketStats == null) ? 0 : bucketStats.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 631 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 631 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 631 |
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer12.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
long types = U32.f(bb.readInt());
long capabilities = U32.f(bb.readInt());
long maxGroupsAll = U32.f(bb.readInt());
long maxGroupsSelect = U32.f(bb.readInt());
long maxGroupsIndirect = U32.f(bb.readInt());
long maxGroupsFf = U32.f(bb.readInt());
long actionsAll = U32.f(bb.readInt());
long actionsSelect = U32.f(bb.readInt());
long actionsIndirect = U32.f(bb.readInt());
long actionsFf = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 185 |
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 185 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 111 |
}
@Override
public OFType getType() {
return OFType.ROLE_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleReply.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleReply.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
//
@Override
public OFRoleReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 185 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 185 |
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 185 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 111 |
}
@Override
public OFType getType() {
return OFType.ROLE_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFControllerRole getRole() {
return role;
}
@Override
public OFRoleRequest.Builder setRole(OFControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public U64 getGenerationId() {
return generationId;
}
@Override
public OFRoleRequest.Builder setGenerationId(U64 generationId) {
this.generationId = generationId;
this.generationIdSet = true;
return this;
}
//
@Override
public OFRoleRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 940 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 783 |
StringBuilder b = new StringBuilder("OFCalientFlowStatsEntryVer13(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("adminStatus=").append(adminStatus); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 162 |
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements() {
return elements;
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) {
this.elements = elements;
this.elementsSet = true;
return this;
}
//
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
List<OFHelloElem> elements = this.elementsSet ? this.elements : DEFAULT_ELEMENTS;
if(elements == null)
throw new NullPointerException("Property elements must not be null");
return new OFHelloVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 391 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 410 |
}
//
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : DEFAULT_QUEUE_ID;
U64 txBytes = this.txBytesSet ? this.txBytes : DEFAULT_TX_BYTES;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : DEFAULT_TX_PACKETS;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : DEFAULT_TX_ERRORS;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketOutVer10.java | 96 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 79 |
public OVXPacketOutVer10(final byte[] pktData, final OFPort inPort,
final OFPort outPort) {
super(DEFAULT_XID,
OFBufferId.NO_BUFFER,
inPort,
(ArrayList<OFAction>)Arrays.asList(
new OFAction[]
{OVXFactoryInst.myFactory.actions()
.buildOutput().setPort(outPort).build()}
),
pktData);
}
private final Logger log = LogManager.getLogger(OVXPacketOut.class
.getName());
private Match match = null;
private final List<OFAction> approvedActions = new LinkedList<OFAction>();
@Override
public void devirtualize(final OVXSwitch sw) {
short OFPP_MAX_SHORT = (short) 0xFF00;
final OVXPort inport = sw.getPort(this.getInPort().getShortPortNumber()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 350 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 364 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 364 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 364 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 227 |
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : parentMessage.config;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 681 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 681 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 681 |
sink.putByte((byte) 0x3);
// fixed value property type = 11
sink.putByte((byte) 0xb);
// FIXME: skip funnel of length
sink.putLong(message.xid);
message.cookie.putTo(sink);
sink.putInt(message.priority);
sink.putShort(message.reason);
message.tableId.putTo(sink);
sink.putLong(message.durationSec);
sink.putLong(message.durationNsec);
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
message.packetCount.putTo(sink);
message.byteCount.putTo(sink);
message.match.putTo(sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFFlowRemovedVer12> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 182 |
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public String getDescription() {
return description;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setDescription(String description) {
this.description = description;
this.descriptionSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnDebugCounterDescStatsEntry build() {
U64 counterId = this.counterIdSet ? this.counterId : parentMessage.counterId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 109 |
BuilderWithParent(OFBsnGentableEntryDescStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalTransportApplicationCodeVer13.java | 105 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalTransportApplicationCodeVer13.java | 172 |
@Override
public int getFeatureType() {
return featureType;
}
@Override
public OFPortOpticalTransportApplicationCode.Builder setFeatureType(int featureType) {
this.featureType = featureType;
this.featureTypeSet = true;
return this;
}
@Override
public short getOicType() {
return oicType;
}
@Override
public OFPortOpticalTransportApplicationCode.Builder setOicType(short oicType) {
this.oicType = oicType;
this.oicTypeSet = true;
return this;
}
@Override
public String getAppCode() {
return appCode;
}
@Override
public OFPortOpticalTransportApplicationCode.Builder setAppCode(String appCode) {
this.appCode = appCode;
this.appCodeSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortOpticalTransportApplicationCode build() {
int featureType = this.featureTypeSet ? this.featureType : parentMessage.featureType; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalTransportLayerEntryVer13.java | 102 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalTransportLayerEntryVer13.java | 167 |
@Override
public short getLayerClass() {
return layerClass;
}
@Override
public OFPortOpticalTransportLayerEntry.Builder setLayerClass(short layerClass) {
this.layerClass = layerClass;
this.layerClassSet = true;
return this;
}
@Override
public short getSignalType() {
return signalType;
}
@Override
public OFPortOpticalTransportLayerEntry.Builder setSignalType(short signalType) {
this.signalType = signalType;
this.signalTypeSet = true;
return this;
}
@Override
public short getAdaptation() {
return adaptation;
}
@Override
public OFPortOpticalTransportLayerEntry.Builder setAdaptation(short adaptation) {
this.adaptation = adaptation;
this.adaptationSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortOpticalTransportLayerEntry build() {
short layerClass = this.layerClassSet ? this.layerClass : parentMessage.layerClass; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 385 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 533 |
public OFPortOptical readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
OFPort portNo = OFPort.read4Bytes(bb);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
MacAddress hwAddr = MacAddress.read6Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
String name = ChannelUtils.readFixedLengthString(bb, 16);
Set<OFPortConfig> config = OFPortConfigSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 182 |
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public String getDescription() {
return description;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setDescription(String description) {
this.description = description;
this.descriptionSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnDebugCounterDescStatsEntry build() {
U64 counterId = this.counterIdSet ? this.counterId : parentMessage.counterId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskRequestVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetIpMaskRequestVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetIpMaskRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public short getIndex() {
return index;
}
@Override
public OFBsnGetIpMaskRequest.Builder setIndex(short index) {
this.index = index;
this.indexSet = true;
return this;
}
@Override
public OFBsnGetIpMaskRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellStatusVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnShellStatusVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnShellStatus.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnShellStatus.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnShellStatus build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 105 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 107 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 3
short errType = bb.readShort();
if(errType != (short) 0x3)
throw new OFParseError("Wrong errType: Expected=OFErrorType.FLOW_MOD_FAILED(3), got="+errType); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleReplyVer10.java | 105 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleReplyVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFNiciraControllerRoleReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x2320L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public OFNiciraControllerRole getRole() {
return role;
}
@Override
public OFNiciraControllerRoleReply.Builder setRole(OFNiciraControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public OFNiciraControllerRoleReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleRequestVer10.java | 105 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleRequestVer10.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFNiciraControllerRoleRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x2320L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public OFNiciraControllerRole getRole() {
return role;
}
@Override
public OFNiciraControllerRoleRequest.Builder setRole(OFNiciraControllerRole role) {
this.role = role;
this.roleSet = true;
return this;
}
@Override
public OFNiciraControllerRoleRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 4
short errType = bb.readShort();
if(errType != (short) 0x4)
throw new OFParseError("Wrong errType: Expected=OFErrorType.PORT_MOD_FAILED(4), got="+errType); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStateSerializerVer10.java | 43 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStateSerializerVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStateSerializerVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStateSerializerVer13.java | 40 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStateSerializerVer14.java | 40 |
public static Set<OFPortState> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFPortState> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFPortState> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFPortState> ofWireValue(int val) {
EnumSet<OFPortState> set = EnumSet.noneOf(OFPortState.class);
if((val & LINK_DOWN_VAL) != 0)
set.add(OFPortState.LINK_DOWN);
if((val & STP_MASK_VAL) == STP_LISTEN_VAL) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 5
short errType = bb.readShort();
if(errType != (short) 0x5)
throw new OFParseError("Wrong errType: Expected=OFErrorType.QUEUE_OP_FAILED(5), got="+errType); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 105 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 107 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 766 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 766 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 796 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 816 |
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("instructions=").append(instructions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 261 |
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 682 |
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 1114 |
}
@Override
public <F extends OFValueType<F>> F get(MatchField<F> field)
throws UnsupportedOperationException {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field)
throws UnsupportedOperationException {
// FIXME yotam - please replace with real implementation
return null;
}
@Override
public boolean supports(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean supportsMasked(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean isExact(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean isFullyWildcarded(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public boolean isPartiallyMasked(MatchField<?> field) {
// FIXME yotam - please replace with real implementation
return false;
}
@Override
public Iterable<MatchField<?>> getMatchFields() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 119 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 200 |
}
@Override
public OFType getType() {
return OFType.TABLE_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableMod.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public List<OFTableModProp> getProperties()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property properties not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 795 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 907 |
b.append("applyActions=").append(applyActions);
b.append(", ");
b.append("config=").append(config);
b.append(", ");
b.append("maxEntries=").append(maxEntries);
b.append(", ");
b.append("activeCount=").append(activeCount);
b.append(", ");
b.append("lookupCount=").append(lookupCount);
b.append(", ");
b.append("matchedCount=").append(matchedCount);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 130 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 142 |
throw new IllegalArgumentException("Illegal wire value for type OFType in version 1.1: " + val);
}
}
public static byte toWireValue(OFType e) {
switch(e) {
case HELLO:
return HELLO_VAL;
case ERROR:
return ERROR_VAL;
case ECHO_REQUEST:
return ECHO_REQUEST_VAL;
case ECHO_REPLY:
return ECHO_REPLY_VAL;
case EXPERIMENTER:
return EXPERIMENTER_VAL;
case FEATURES_REQUEST:
return FEATURES_REQUEST_VAL;
case FEATURES_REPLY:
return FEATURES_REPLY_VAL;
case GET_CONFIG_REQUEST:
return GET_CONFIG_REQUEST_VAL;
case GET_CONFIG_REPLY:
return GET_CONFIG_REPLY_VAL;
case SET_CONFIG:
return SET_CONFIG_VAL;
case PACKET_IN:
return PACKET_IN_VAL;
case FLOW_REMOVED:
return FLOW_REMOVED_VAL;
case PORT_STATUS:
return PORT_STATUS_VAL;
case PACKET_OUT:
return PACKET_OUT_VAL;
case FLOW_MOD:
return FLOW_MOD_VAL;
case GROUP_MOD:
return GROUP_MOD_VAL;
case PORT_MOD:
return PORT_MOD_VAL;
case TABLE_MOD:
return TABLE_MOD_VAL;
case STATS_REQUEST:
return STATS_REQUEST_VAL;
case STATS_REPLY:
return STATS_REPLY_VAL;
case BARRIER_REQUEST:
return BARRIER_REQUEST_VAL;
case BARRIER_REPLY:
return BARRIER_REPLY_VAL;
case QUEUE_GET_CONFIG_REQUEST:
return QUEUE_GET_CONFIG_REQUEST_VAL;
case QUEUE_GET_CONFIG_REPLY:
return QUEUE_GET_CONFIG_REPLY_VAL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 105 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 107 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 393 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 395 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 393 |
OFOxm<F> oxm = OFFactories.getFactory(OFVersion.OF_12).oxms().fromMasked(valueWithMask, field);
this.oxmListBuilder.set(oxm);
updateOxmList();
return this;
}
@Override
public <F extends OFValueType<F>> Match.Builder wildcard(MatchField<F> field) {
initBuilder();
this.oxmListBuilder.unset(field);
updateOxmList();
return this;
}
}
static class Builder implements OFMatchV3.Builder {
// OF message fields
private boolean oxmListSet;
private OFOxmList oxmList;
@Override
public int getType() {
return 0x1;
}
@Override
public OFOxmList getOxmList() {
return oxmList;
}
@Override
public OFMatchV3.Builder setOxmList(OFOxmList oxmList) {
this.oxmList = oxmList;
this.oxmListSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 358 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 315 |
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 360 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 309 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 399 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 399 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 306 |
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x27L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x24L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 177 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x34L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnGetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 829 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 698 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 829 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 698 |
b.append("actorKey=").append(actorKey);
b.append(", ");
b.append("partnerSysPriority=").append(partnerSysPriority);
b.append(", ");
b.append("partnerSysMac=").append(partnerSysMac);
b.append(", ");
b.append("partnerPortPriority=").append(partnerPortPriority);
b.append(", ");
b.append("partnerPortNum=").append(partnerPortNum);
b.append(", ");
b.append("partnerKey=").append(partnerKey);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3aL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x36L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 177 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x35L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 177 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2dL;
}
@Override
public U64 getTimeMs() {
return timeMs;
}
@Override
public OFBsnTimeReply.Builder setTimeMs(U64 timeMs) {
this.timeMs = timeMs;
this.timeMsSet = true;
return this;
}
@Override
public OFBsnTimeReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 105 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 731 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 615 |
public OFCalientFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 524 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsRequestVer13.java | 313 |
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x80f958L
int experimenter = bb.readInt();
if(experimenter != 0x80f958)
throw new OFParseError("Wrong experimenter: Expected=0x80f958L(0x80f958L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 103 |
BuilderWithParent(OFMeterBandDscpRemarkVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getType() {
return 0x2;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDscpRemark.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDscpRemark.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public short getPrecLevel() {
return precLevel;
}
@Override
public OFMeterBandDscpRemark.Builder setPrecLevel(short precLevel) {
this.precLevel = precLevel;
this.precLevelSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 103 |
BuilderWithParent(OFMeterBandExperimenterVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getType() {
return 0xffff;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandExperimenter.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandExperimenter.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFMeterBandExperimenter.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 358 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 315 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 315 |
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 313 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 360 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 309 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 399 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 399 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 313 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 268 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 306 |
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0xdL
int subtype = bb.readInt();
if(subtype != 0xd) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x27L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x24L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 177 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x34L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnGetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3aL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x36L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 177 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x35L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 177 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2dL;
}
@Override
public U64 getTimeMs() {
return timeMs;
}
@Override
public OFBsnTimeReply.Builder setTimeMs(U64 timeMs) {
this.timeMs = timeMs;
this.timeMsSet = true;
return this;
}
@Override
public OFBsnTimeReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 172 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketInVer10.java | 350 |
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 407 |
((OFMatchV1)match).getIpv4Dst().getInt());
}
}
}
private void installDropRule(final PhysicalSwitch sw, final Match match) {
final U64 DEFAULT_COOKIE = U64.ZERO;
final OFPort DEFAULT_OUT_PORT = OFPort.ANY;
final Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
final List<OFAction> DEFAULT_ACTIONS = ImmutableList.<OFAction>of();
final OVXFlowMod fm =OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(0, match, DEFAULT_COOKIE, 0, (short) 1, 0, this.getBufferId(), DEFAULT_OUT_PORT, DEFAULT_FLAGS, DEFAULT_ACTIONS);
sw.sendMsg(fm, sw);
}
private Integer fetchTenantId(final Match match, final Mappable map,
final boolean useMAC) {
MACAddress mac = MACAddress.valueOf(((OFMatchV1)match).getEthSrc().toString()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 477 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 477 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 477 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 477 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 477 |
StringBuilder b = new StringBuilder("OFBsnPduRxRequestVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("timeoutMs=").append(timeoutMs);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("slotNum=").append(slotNum);
b.append(", ");
b.append("data=").append(Arrays.toString(data));
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 477 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 477 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 477 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 477 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 477 |
StringBuilder b = new StringBuilder("OFBsnPduTxRequestVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("txIntervalMs=").append(txIntervalMs);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("slotNum=").append(slotNum);
b.append(", ");
b.append("data=").append(Arrays.toString(data));
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 161 |
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFEchoReplyVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 161 |
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
byte[] data = this.dataSet ? this.data : DEFAULT_DATA;
if(data == null)
throw new NullPointerException("Property data must not be null");
return new OFEchoRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 452 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 457 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 457 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 457 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 457 |
StringBuilder b = new StringBuilder("OFPacketOutVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("bufferId=").append(bufferId);
b.append(", ");
b.append("inPort=").append(inPort);
b.append(", ");
b.append("actions=").append(actions);
b.append(", ");
b.append("data=").append(Arrays.toString(data));
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 426 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 426 |
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.1");
}
//
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
DatapathId datapathId = this.datapathIdSet ? this.datapathId : DEFAULT_DATAPATH_ID;
if(datapathId == null)
throw new NullPointerException("Property datapathId must not be null");
long nBuffers = this.nBuffersSet ? this.nBuffers : DEFAULT_N_BUFFERS;
short nTables = this.nTablesSet ? this.nTables : DEFAULT_N_TABLES;
Set<OFCapabilities> capabilities = this.capabilitiesSet ? this.capabilities : DEFAULT_CAPABILITIES;
if(capabilities == null)
throw new NullPointerException("Property capabilities must not be null");
long reserved = this.reservedSet ? this.reserved : DEFAULT_RESERVED;
List<OFPortDesc> ports = this.portsSet ? this.ports : DEFAULT_PORTS;
if(ports == null)
throw new NullPointerException("Property ports must not be null");
return new OFFeaturesReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 157 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.4");
}
@Override
public int getImportance() {
return importance;
}
public OFFlowAdd.Builder createBuilder() { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/ConnectHost.java | 94 |
| net/onrc/openvirtex/api/service/handlers/tenant/CreateOVXPort.java | 108 |
+ ": Unable to connect host : " + e.getMessage()),
0);
} catch (final InvalidPortException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid port : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final IndexOutOfBoundException e) {
resp = new JSONRPC2Response(
new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(),
this.cmdName()
+ ": Impossible to create the virtual port, too many ports on this virtual switch : "
+ e.getMessage()), 0);
} catch (final NetworkMappingException e) { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowRemovedVer10.java | 43 |
| net/onrc/openvirtex/messages/ver13/OVXFlowRemovedVer13.java | 47 |
idleTimeout, packetCount, byteCount);
// TODO Auto-generated constructor stub
}
Logger log = LogManager.getLogger(OVXFlowRemoved.class.getName());
@Override
public void virtualize(final PhysicalSwitch sw) {
int tid = (int) (this.cookie.getValue()>> 32);
/* a PhysSwitch can be a OVXLink */
if (!(sw.getMap().hasVirtualSwitch(sw, tid))) {
return;
}
try {
OVXSwitch vsw = sw.getMap().getVirtualSwitch(sw, tid);
/*
* If we are a Big Switch we might receive multiple same-cookie FR's
* from multiple PhysicalSwitches. Only handle if the FR's newly
* seen
*/
if (vsw.getFlowTable().hasFlowMod(this.cookie.getValue())) {
OVXFlowMod fm = vsw.getFlowMod(this.cookie.getValue());
/*
* send north ONLY if tenant controller wanted a FlowRemoved for
* the FlowMod
*/
vsw.deleteFlowMod(this.cookie.getValue());
if (fm.hasFlag(OFFlowModFlagsSerializerVer10.SEND_FLOW_REM_VAL)) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 707 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 759 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 759 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortStatusVer13.java | 725 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 759 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 506 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 654 |
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (config == null) {
if (other.config != null)
return false;
} else if (!config.equals(other.config))
return false;
if (state == null) {
if (other.state != null)
return false;
} else if (!state.equals(other.state))
return false;
if (curr == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 747 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 531 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 679 |
} else if (!peer.equals(other.peer))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((config == null) ? 0 : config.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result + ((curr == null) ? 0 : curr.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 900 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 751 |
public void write(ChannelBuffer bb, OFCalientFlowStatsEntryVer13 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
message.tableId.writeByte(bb);
// pad: 1 bytes
bb.writeZero(1);
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
bb.writeShort(U16.t(message.priority));
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
OFFlowModFlagsSerializerVer13.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.cookie.getValue()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/types/OFVlanVidMatch.java | 151 |
| org/projectfloodlight/openflow/types/VlanVid.java | 67 |
}
@Override
public int getLength() {
return LENGTH;
}
private volatile byte[] bytesCache = null;
public byte[] getBytes() {
if (bytesCache == null) {
synchronized (this) {
if (bytesCache == null) {
bytesCache =
new byte[] { (byte) ((vid >>> 8) & 0xFF),
(byte) ((vid >>> 0) & 0xFF) };
}
}
}
return Arrays.copyOf(bytesCache, bytesCache.length);
}
public void write2Bytes(ChannelBuffer c) {
c.writeShort(this.vid);
}
public void write2BytesOF10(ChannelBuffer c) {
c.writeShort(this.getVlan());
}
public static OFVlanVidMatch read2Bytes(ChannelBuffer c) throws OFParseError { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/AddController.java | 87 |
| net/onrc/openvirtex/api/service/handlers/tenant/CreateOVXSwitch.java | 100 |
+ e.getMessage()), 0);
} catch (final InvalidDPIDException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid DPID : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
} catch (ControllerUnavailableException e) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 106 |
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedCodeSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedCodeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedCodeSerializerVer14.java | 30 |
public class OFHelloFailedCodeSerializerVer10 {
public final static short INCOMPATIBLE_VAL = (short) 0x0;
public final static short EPERM_VAL = (short) 0x1;
public static OFHelloFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFHelloFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFHelloFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFHelloFailedCode ofWireValue(short val) {
switch(val) {
case INCOMPATIBLE_VAL:
return OFHelloFailedCode.INCOMPATIBLE;
case EPERM_VAL:
return OFHelloFailedCode.EPERM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFHelloFailedCode in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInReasonSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInReasonSerializerVer11.java | 30 |
public class OFPacketInReasonSerializerVer10 {
public final static byte NO_MATCH_VAL = (byte) 0x0;
public final static byte ACTION_VAL = (byte) 0x1;
public static OFPacketInReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPacketInReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFPacketInReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFPacketInReason ofWireValue(byte val) {
switch(val) {
case NO_MATCH_VAL:
return OFPacketInReason.NO_MATCH;
case ACTION_VAL:
return OFPacketInReason.ACTION;
default:
throw new IllegalArgumentException("Illegal wire value for type OFPacketInReason in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 353 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 353 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 353 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 353 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 353 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 13
byte type = bb.readByte();
if(type != (byte) 0xd)
throw new OFParseError("Wrong type: Expected=OFType.PACKET_OUT(13), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort inPort = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 103 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPort port = this.portSet ? this.port : parentMessage.port;
if(port == null)
throw new NullPointerException("Property port must not be null");
//
return new OFQueueGetConfigRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 106 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 449 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 449 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 449 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 449 |
bb.writeByte((byte) 0x2);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x21L
bb.writeInt(0x21);
bb.writeInt(U32.t(message.timeoutMs));
message.portNo.write4Bytes(bb);
bb.writeByte(U8.t(message.slotNum));
// pad: 3 bytes
bb.writeZero(3);
bb.writeBytes(message.data);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnPduRxRequestVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 449 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 449 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 449 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 449 |
bb.writeByte((byte) 0x2);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x1fL
bb.writeInt(0x1f);
bb.writeInt(U32.t(message.txIntervalMs));
message.portNo.write4Bytes(bb);
bb.writeByte(U8.t(message.slotNum));
// pad: 3 bytes
bb.writeZero(3);
bb.writeBytes(message.data);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnPduTxRequestVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 106 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 865 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 865 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 865 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 865 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 865 |
bb.writeByte((short) 0x0);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
OFFlowModFlagsSerializerVer11.writeTo(bb, message.flags);
// pad: 2 bytes
bb.writeZero(2);
message.match.writeTo(bb);
ChannelUtils.writeList(bb, message.instructions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowAddVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 106 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 803 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 803 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 803 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 531 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 679 |
if( maxSpeed != other.maxSpeed)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((config == null) ? 0 : config.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result + ((curr == null) ? 0 : curr.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 376 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 376 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 376 |
OFTableModVer11 other = (OFTableModVer11) obj;
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( config != other.config)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (config ^ (config >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 106 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFControllerMaxLenSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFControllerMaxLenSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFControllerMaxLenSerializerVer14.java | 30 |
public class OFControllerMaxLenSerializerVer12 {
public final static short MAX_VAL = (short) 0xffe5;
public final static short NO_BUFFER_VAL = (short) 0xffff;
public static OFControllerMaxLen readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFControllerMaxLen e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFControllerMaxLen e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFControllerMaxLen ofWireValue(short val) {
switch(val) {
case MAX_VAL:
return OFControllerMaxLen.MAX;
case NO_BUFFER_VAL:
return OFControllerMaxLen.NO_BUFFER;
default:
throw new IllegalArgumentException("Illegal wire value for type OFControllerMaxLen in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 865 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 865 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 865 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 865 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 865 |
bb.writeByte((short) 0x0);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
OFFlowModFlagsSerializerVer12.writeTo(bb, message.flags);
// pad: 2 bytes
bb.writeZero(2);
message.match.writeTo(bb);
ChannelUtils.writeList(bb, message.instructions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowAddVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchTypeSerializerVer14.java | 30 |
public class OFMatchTypeSerializerVer12 {
public final static short STANDARD_VAL = (short) 0x0;
public final static short OXM_VAL = (short) 0x1;
public static OFMatchType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFMatchType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFMatchType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFMatchType ofWireValue(short val) {
switch(val) {
case STANDARD_VAL:
return OFMatchType.STANDARD;
case OXM_VAL:
return OFMatchType.OXM;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMatchType in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 119 |
BuilderWithParent(OFOxmArpOpMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 119 |
BuilderWithParent(OFOxmArpShaMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 119 |
BuilderWithParent(OFOxmArpSpaMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 119 |
BuilderWithParent(OFOxmArpThaMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 119 |
BuilderWithParent(OFOxmArpTpaMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnEgrPortGroupIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 119 |
BuilderWithParent(OFOxmBsnGlobalVrfAllowedMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30702L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnInPorts128MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnInPorts512MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnIngressPortGroupIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 119 |
BuilderWithParent(OFOxmBsnL2CacheHitMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32502L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 119 |
BuilderWithParent(OFOxmBsnL3DstClassIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30d08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnL3InterfaceClassIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnL3SrcClassIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnLagIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnTcpFlagsMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf0MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf1MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf2MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf3MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf4MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf5MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf6MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnUdf7MaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnVlanXlatePortGroupIdMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnVrfMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmEthDstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmEthSrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 119 |
BuilderWithParent(OFOxmEthTypeMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIcmpv4CodeMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIcmpv4TypeMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIcmpv6CodeMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIcmpv6TypeMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 119 |
BuilderWithParent(OFOxmInPhyPortMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 119 |
BuilderWithParent(OFOxmInPortMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpDscpMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpEcnMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpProtoMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv4DstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv4SrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6DstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6FlabelMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6NdSllMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6NdTargetMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6NdTllMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6SrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 119 |
BuilderWithParent(OFOxmMetadataMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 119 |
BuilderWithParent(OFOxmMplsLabelMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmMplsTcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmSctpDstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmSctpSrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmTcpDstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmTcpSrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmTunnelIpv4DstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmTunnelIpv4SrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmUdpDstMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmUdpSrcMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 119 |
BuilderWithParent(OFOxmVlanPcpMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 119 |
BuilderWithParent(OFOxmVlanVidMaskedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropExperimenterVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropExperimenterVer14.java | 34 |
public final static OFQueuePropExperimenterVer12.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFQueuePropExperimenter> {
@Override
public OFQueuePropExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 0xffff
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=0xffff(0xffff), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// pad: 4 bytes
bb.skipBytes(4);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
default:
throw new OFParseError("Unknown value for discriminator experimenter of class OFQueuePropExperimenterVer12: " + experimenter); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableSerializerVer14.java | 30 |
public class OFTableSerializerVer12 {
public final static byte MAX_VAL = (byte) 0xfe;
public final static byte ALL_VAL = (byte) 0xff;
public static OFTable readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFTable e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFTable e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFTable ofWireValue(byte val) {
switch(val) {
case MAX_VAL:
return OFTable.MAX;
case ALL_VAL:
return OFTable.ALL;
default:
throw new IllegalArgumentException("Illegal wire value for type OFTable in version 1.2: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionStateSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionStateSerializerVer14.java | 30 |
public class OFBsnControllerConnectionStateSerializerVer13 {
public final static byte BSN_CONTROLLER_CONNECTION_STATE_DISCONNECTED_VAL = (byte) 0x0;
public final static byte BSN_CONTROLLER_CONNECTION_STATE_CONNECTED_VAL = (byte) 0x1;
public static OFBsnControllerConnectionState readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnControllerConnectionState e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnControllerConnectionState e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnControllerConnectionState ofWireValue(byte val) {
switch(val) {
case BSN_CONTROLLER_CONNECTION_STATE_DISCONNECTED_VAL:
return OFBsnControllerConnectionState.BSN_CONTROLLER_CONNECTION_STATE_DISCONNECTED;
case BSN_CONTROLLER_CONNECTION_STATE_CONNECTED_VAL:
return OFBsnControllerConnectionState.BSN_CONTROLLER_CONNECTION_STATE_CONNECTED;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnControllerConnectionState in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableSetBucketsSizeVer13.java | 394 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableSetBucketsSizeVer13.java | 403 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableSetBucketsSizeVer14.java | 394 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableSetBucketsSizeVer14.java | 403 |
OFBsnGentableSetBucketsSizeVer13 other = (OFBsnGentableSetBucketsSizeVer13) obj;
if( xid != other.xid)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( bucketsSize != other.bucketsSize)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (bucketsSize ^ (bucketsSize >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 635 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 635 |
public void funnel(OFBsnLacpStatsEntryVer13 message, PrimitiveSink sink) {
message.portNo.putTo(sink);
sink.putInt(message.actorSysPriority);
message.actorSysMac.putTo(sink);
sink.putInt(message.actorPortPriority);
sink.putInt(message.actorPortNum);
sink.putInt(message.actorKey);
sink.putShort(message.convergenceStatus);
// skip pad (1 bytes)
sink.putInt(message.partnerSysPriority);
message.partnerSysMac.putTo(sink);
sink.putInt(message.partnerPortPriority);
sink.putInt(message.partnerPortNum);
sink.putInt(message.partnerKey);
// skip pad (2 bytes)
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnLacpStatsEntryVer13> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpReplyVer13.java | 393 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpReplyVer14.java | 393 |
OFBsnSetLacpReplyVer13 other = (OFBsnSetLacpReplyVer13) obj;
if( xid != other.xid)
return false;
if( status != other.status)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (status ^ (status >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterSerializerVer14.java | 30 |
public class OFBsnVrfCounterSerializerVer13 {
public final static byte BSN_VRF_COUNTER_BYTES_VAL = (byte) 0x0;
public final static byte BSN_VRF_COUNTER_PACKETS_VAL = (byte) 0x1;
public static OFBsnVrfCounter readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnVrfCounter e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnVrfCounter e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnVrfCounter ofWireValue(byte val) {
switch(val) {
case BSN_VRF_COUNTER_BYTES_VAL:
return OFBsnVrfCounter.BSN_VRF_COUNTER_BYTES;
case BSN_VRF_COUNTER_PACKETS_VAL:
return OFBsnVrfCounter.BSN_VRF_COUNTER_PACKETS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnVrfCounter in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 422 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 422 |
OFBsnVrfCounterStatsRequestVer13 other = (OFBsnVrfCounterStatsRequestVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if( vrf != other.vrf)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * (int) (vrf ^ (vrf >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 909 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 905 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 904 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 905 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 903 |
bb.writeByte((short) 0x0);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
OFFlowModFlagsSerializerVer13.writeTo(bb, message.flags);
// pad: 2 bytes
bb.writeZero(2);
message.match.writeTo(bb);
ChannelUtils.writeList(bb, message.instructions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowAddVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 381 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 381 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 381 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 381 |
OFMeterConfigStatsRequestVer13 other = (OFMeterConfigStatsRequestVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if( meterId != other.meterId)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * (int) (meterId ^ (meterId >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnInnerEthDstMaskedVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32d0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnInnerEthSrcMaskedVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32f0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmBsnVxlanNetworkIdMaskedVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32b08L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 119 |
BuilderWithParent(OFOxmIpv6ExthdrMaskedVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004f04L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 119 |
BuilderWithParent(OFOxmMplsBosMaskedVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004902L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBosMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmMplsBosMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 119 |
BuilderWithParent(OFOxmTunnelIdMaskedVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004d10L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelIdMasked.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U64 getMask() {
return mask;
}
@Override
public OFOxmTunnelIdMasked.Builder setMask(U64 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.QUEUE_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFQueueDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFQueueDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 168 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowAddVer13.java | 203 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 143 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 146 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 144 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 148 |
if (this.getMatch().get(MatchField.IN_PORT) == null) {
/* expand match to all ports */
for (OVXPort iport : sw.getPorts().values()) {
//Match.Builder builder = ((OFMatchV3)this.match).createBuilder().setExact(MatchField.IN_PORT, iport.getPortNo());
this.match = addtoMatch((OFMatchV3)this.match, iport.getPortNo());
prepAndSendSouth(iport, pflag);
}
} else {
this.log.error(
"Unknown virtual port id {}; dropping flowmod {}",
inport, this);
sw.sendMsg(OVXMessageUtil.makeErrorMsg(
OFFlowModFailedCode.EPERM, this), sw);
return;
}
} else {
prepAndSendSouth(ovxInPort, pflag);
}
}
private OFMatchV3 addtoMatch(OFMatchV3 myMatch, OFPort port) {
OFMatchV3 newMatch;
OFOxmList myList = myMatch.getOxmList();
OFOxmInPort oxmInPort = new OFOxmInPortVer13(port);
Map <MatchFields, OFOxm<?>> oxmMap = new LinkedHashMap<>(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 545 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 571 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 571 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 571 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 492 |
}
//
@Override
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : DEFAULT_CONFIG;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : DEFAULT_STATE;
if(state == null)
throw new NullPointerException("Property state must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 382 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 382 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 396 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 404 |
U64 cookie = this.cookieSet ? this.cookie : parentMessage.cookie;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : parentMessage.instructions;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
//
return new OFFlowStatsEntryVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 108 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 179 |
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFGroupDescStatsEntry build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 108 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 179 |
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFGroupDescStatsEntry build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 455 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 455 |
bb.writeByte((byte) 0x4);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x28L
bb.writeInt(0x28);
bb.writeLong(message.cookie.getValue());
bb.writeShort(U16.t(message.priority));
message.tableId.writeByte(bb);
// pad: 5 bytes
bb.writeZero(5);
message.match.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnFlowIdleVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 179 |
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFGroupDescStatsEntry build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 790 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 790 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 790 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 790 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 790 |
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.ADD(0), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer14.readFrom(bb);
int importance = U16.f(bb.readShort());
Match match = ChannelUtilsVer14.readOFMatch(bb);
List<OFInstruction> instructions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionVer14.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 179 |
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFGroupDescStatsEntry build() { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/AddController.java | 87 |
| net/onrc/openvirtex/api/service/handlers/tenant/CreateOVXSwitch.java | 100 |
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXSwitch.java | 71 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXSwitch.java | 74 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXSwitch.java | 73 |
+ e.getMessage()), 0);
} catch (final InvalidDPIDException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid DPID : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
} catch (ControllerUnavailableException e) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketCounterVer11.java | 264 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketCounterVer12.java | 264 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketCounterVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketCounterVer14.java | 264 |
OFBucketCounterVer11 other = (OFBucketCounterVer11) obj;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 104 |
BuilderWithParent(OFGroupDescStatsEntryVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteMetadataVer11.java | 307 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteMetadataVer12.java | 307 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteMetadataVer13.java | 307 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteMetadataVer14.java | 307 |
OFInstructionWriteMetadataVer11 other = (OFInstructionWriteMetadataVer11) obj;
if (metadata == null) {
if (other.metadata != null)
return false;
} else if (!metadata.equals(other.metadata))
return false;
if (metadataMask == null) {
if (other.metadataMask != null)
return false;
} else if (!metadataMask.equals(other.metadataMask))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((metadata == null) ? 0 : metadata.hashCode());
result = prime * result + ((metadataMask == null) ? 0 : metadataMask.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmPbbUcaMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 337 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 337 |
OFOxmArpOpMaskedVer12 other = (OFOxmArpOpMaskedVer12) obj;
if (value == null) {
if (other.value != null)
return false;
} else if (!value.equals(other.value))
return false;
if (mask == null) {
if (other.mask != null)
return false;
} else if (!mask.equals(other.mask))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((mask == null) ? 0 : mask.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 106 |
BuilderWithParent(OFPacketQueueVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsEntryVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsEntryVer14.java | 264 |
OFBsnDebugCounterStatsEntryVer13 other = (OFBsnDebugCounterStatsEntryVer13) obj;
if (counterId == null) {
if (other.counterId != null)
return false;
} else if (!counterId.equals(other.counterId))
return false;
if (value == null) {
if (other.value != null)
return false;
} else if (!value.equals(other.value))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((counterId == null) ? 0 : counterId.hashCode());
result = prime * result + ((value == null) ? 0 : value.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 296 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 296 |
OFBsnGentableEntryStatsEntryVer13 other = (OFBsnGentableEntryStatsEntryVer13) obj;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
if (stats == null) {
if (other.stats != null)
return false;
} else if (!stats.equals(other.stats))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((key == null) ? 0 : key.hashCode());
result = prime * result + ((stats == null) ? 0 : stats.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsEntryVer13.java | 291 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsEntryVer14.java | 291 |
OFBsnPortCounterStatsEntryVer13 other = (OFBsnPortCounterStatsEntryVer13) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (values == null) {
if (other.values != null)
return false;
} else if (!values.equals(other.values))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((values == null) ? 0 : values.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsEntryVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsEntryVer14.java | 264 |
OFBsnTableChecksumStatsEntryVer13 other = (OFBsnTableChecksumStatsEntryVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((checksum == null) ? 0 : checksum.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 379 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 386 |
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandStatsVer13.java | 264 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandStatsVer14.java | 264 |
OFMeterBandStatsVer13 other = (OFMeterBandStatsVer13) obj;
if (packetBandCount == null) {
if (other.packetBandCount != null)
return false;
} else if (!packetBandCount.equals(other.packetBandCount))
return false;
if (byteBandCount == null) {
if (other.byteBandCount != null)
return false;
} else if (!byteBandCount.equals(other.byteBandCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((packetBandCount == null) ? 0 : packetBandCount.hashCode());
result = prime * result + ((byteBandCount == null) ? 0 : byteBandCount.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 103 |
BuilderWithParent(OFMeterConfigVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterConfig.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfig.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfig.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 364 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 364 |
}
//
@Override
public OFMeterStats build() {
long meterId = this.meterIdSet ? this.meterId : DEFAULT_METER_ID;
long flowCount = this.flowCountSet ? this.flowCount : DEFAULT_FLOW_COUNT;
U64 packetInCount = this.packetInCountSet ? this.packetInCount : DEFAULT_PACKET_IN_COUNT;
if(packetInCount == null)
throw new NullPointerException("Property packetInCount must not be null");
U64 byteInCount = this.byteInCountSet ? this.byteInCount : DEFAULT_BYTE_IN_COUNT;
if(byteInCount == null)
throw new NullPointerException("Property byteInCount must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
List<OFMeterBandStats> bandStats = this.bandStatsSet ? this.bandStats : DEFAULT_BAND_STATS;
if(bandStats == null)
throw new NullPointerException("Property bandStats must not be null");
return new OFMeterStatsVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableConfigSerializerVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableConfigSerializerVer14.java | 40 |
public static Set<OFTableConfig> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFTableConfig> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFTableConfig> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFTableConfig> ofWireValue(int val) {
EnumSet<OFTableConfig> set = EnumSet.noneOf(OFTableConfig.class);
if((val & DEPRECATED_MASK_VAL) != 0)
set.add(OFTableConfig.DEPRECATED_MASK); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 456 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 461 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 461 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 461 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 461 |
StringBuilder b = new StringBuilder("OFAggregateStatsReplyVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("flowCount=").append(flowCount);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 532 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 532 |
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("match=").append(match);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("outPort=").append(outPort);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadActionErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadMatchErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueOpFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadMatchErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 306 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueOpFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadMatchErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueOpFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadMatchErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadPropertyErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowMonitorFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterModFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueOpFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedErrorMsgVer14.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 2
short errType = bb.readShort();
if(errType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFHelloFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueOpFailedErrorMsgVer10.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionErrorMsgVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionErrorMsgVer12.java | 271 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionErrorMsgVer13.java | 271 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionErrorMsgVer14.java | 271 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 1
byte type = bb.readByte();
if(type != (byte) 0x1)
throw new OFParseError("Wrong type: Expected=OFType.ERROR(1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property errType == 1
short errType = bb.readShort();
if(errType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 115 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 182 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 182 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 182 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 182 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 115 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 115 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 115 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 115 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnInterface> getInterfaces() {
return interfaces;
}
@Override
public OFBsnGetInterfacesReply.Builder setInterfaces(List<OFBsnInterface> interfaces) {
this.interfaces = interfaces;
this.interfacesSet = true;
return this;
}
//
@Override
public OFBsnGetInterfacesReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 602 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 599 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 599 |
throw new NullPointerException("Property match must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 634 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 634 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 634 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 657 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 672 |
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFFlowStatsEntry> {
@Override
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 840 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 839 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 839 |
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * result + ((actions == null) ? 0 : actions.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 463 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 458 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 458 |
StringBuilder b = new StringBuilder("OFQueueStatsEntryVer10(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("queueId=").append(queueId);
b.append(", ");
b.append("txBytes=").append(txBytes);
b.append(", ");
b.append("txPackets=").append(txPackets);
b.append(", ");
b.append("txErrors=").append(txErrors);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 346 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 346 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 279 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 318 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 318 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 318 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 318 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 0
short command = bb.readShort();
if(command != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 318 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 318 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 318 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 318 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 318 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 15
byte type = bb.readByte();
if(type != (byte) 0xf)
throw new OFParseError("Wrong type: Expected=OFType.GROUP_MOD(15), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property command == 2
short command = bb.readShort();
if(command != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 278 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 278 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 7
short statsType = bb.readShort();
if(statsType != (short) 0x7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 466 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 466 |
StringBuilder b = new StringBuilder("OFGroupStatsEntryVer11(");
b.append("group=").append(group);
b.append(", ");
b.append("refCount=").append(refCount);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("bucketStats=").append(bucketStats);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 501 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 353 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 517 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 501 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 278 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 353 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 501 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 278 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 501 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 501 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 501 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 108 |
BuilderWithParent(OFActionBsnGentableVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public long getTableId() {
return tableId;
}
@Override
public OFActionBsnGentable.Builder setTableId(long tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFActionBsnGentable.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 115 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 182 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x39L;
}
@Override
public List<OFBsnControllerConnection> getConnections() {
return connections;
}
@Override
public OFBsnControllerConnectionsReply.Builder setConnections(List<OFBsnControllerConnection> connections) {
this.connections = connections;
this.connectionsSet = true;
return this;
}
@Override
public OFBsnControllerConnectionsReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 115 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x39L;
}
@Override
public List<OFBsnControllerConnection> getConnections() {
return connections;
}
@Override
public OFBsnControllerConnectionsReply.Builder setConnections(List<OFBsnControllerConnection> connections) {
this.connections = connections;
this.connectionsSet = true;
return this;
}
//
@Override
public OFBsnControllerConnectionsReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 483 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 483 |
StringBuilder b = new StringBuilder("OFBsnFlowIdleVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("cookie=").append(cookie);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("match=").append(match);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 493 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 493 |
StringBuilder b = new StringBuilder("OFBsnGentableEntryAddVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("checksum=").append(checksum);
b.append(", ");
b.append("key=").append(key);
b.append(", ");
b.append("value=").append(value);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 510 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 510 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 510 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 510 |
StringBuilder b = new StringBuilder("OFBsnGentableEntryDescStatsRequestVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("checksum=").append(checksum);
b.append(", ");
b.append("checksumMask=").append(checksumMask);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 365 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 365 |
StringBuilder b = new StringBuilder("OFMeterFeaturesVer13(");
b.append("maxMeter=").append(maxMeter);
b.append(", ");
b.append("bandTypes=").append(bandTypes);
b.append(", ");
b.append("capabilities=").append(capabilities);
b.append(", ");
b.append("maxBands=").append(maxBands);
b.append(", ");
b.append("maxColor=").append(maxColor);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 493 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 493 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 493 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 493 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 493 |
static class Builder implements OFFlowAdd.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean importanceSet;
private int importance;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/link/OVXLink.java | 457 |
| net/onrc/openvirtex/elements/link/OVXLink.java | 548 |
.build();
OFAction fm_clone_action=OVXFactoryInst.myFactory.actions()
.output(outPort.getPortNo(), (short) 0xffff);
fm_clone=fm_clone.createBuilder().setMatch(fm_clone_match)
.setActions(Arrays.asList(fm_clone_action))
.build();
phyLink.getSrcPort().getParentSwitch()
.sendMsg(fm_clone, phyLink.getSrcPort().getParentSwitch());
this.log.debug(
"Sending virtual link intermediate fm to sw {}: {}",
phyLink.getSrcPort().getParentSwitch().getSwitchName(),
fm_clone);
}
outPort = phyLink.getDstPort();
}
// TODO: With POX we need to put a timeout between this flows and the
// first flow mod. Check how to solve.
try {
Thread.sleep(5);
} catch (final InterruptedException e) {
log.warn("Timeout interrupted; might be a problem if you are running POX.");
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionNiciraVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionNiciraVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionNiciraVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdNiciraVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionNiciraVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdNiciraVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionNiciraVer14.java | 38 |
public OFActionNicira readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
short subtype = bb.readShort();
bb.readerIndex(start);
switch(subtype) {
case (short) 0x12:
// discriminator value 0x12=0x12 for class OFActionNiciraDecTtlVer10
return OFActionNiciraDecTtlVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 302 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 312 |
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0");
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 160 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 160 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 160 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
//
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFPort port = this.portSet ? this.port : DEFAULT_PORT;
if(port == null)
throw new NullPointerException("Property port must not be null");
return new OFQueueGetConfigRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadActionCodeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionCodeSerializerVer14.java | 30 |
public class OFBadActionCodeSerializerVer11 {
public final static short BAD_TYPE_VAL = (short) 0x0;
public final static short BAD_LEN_VAL = (short) 0x1;
public final static short BAD_EXPERIMENTER_VAL = (short) 0x2;
public final static short BAD_EXPERIMENTER_TYPE_VAL = (short) 0x3;
public final static short BAD_OUT_PORT_VAL = (short) 0x4;
public final static short BAD_ARGUMENT_VAL = (short) 0x5;
public final static short EPERM_VAL = (short) 0x6;
public final static short TOO_MANY_VAL = (short) 0x7;
public final static short BAD_QUEUE_VAL = (short) 0x8;
public final static short BAD_OUT_GROUP_VAL = (short) 0x9;
public final static short MATCH_INCONSISTENT_VAL = (short) 0xa;
public final static short UNSUPPORTED_ORDER_VAL = (short) 0xb;
public final static short BAD_TAG_VAL = (short) 0xc;
public static OFBadActionCode readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 465 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 465 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 496 |
return new OFFlowAddVer11(
xid,
cookie,
cookieMask,
tableId,
idleTimeout,
hardTimeout,
priority,
bufferId,
outPort,
outGroup,
flags,
match,
instructions
);
}
}
static class Builder implements OFFlowAdd.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 465 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 465 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 492 |
return new OFFlowDeleteStrictVer11(
xid,
cookie,
cookieMask,
tableId,
idleTimeout,
hardTimeout,
priority,
bufferId,
outPort,
outGroup,
flags,
match,
instructions
);
}
}
static class Builder implements OFFlowDeleteStrict.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 465 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 465 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 491 |
return new OFFlowDeleteVer11(
xid,
cookie,
cookieMask,
tableId,
idleTimeout,
hardTimeout,
priority,
bufferId,
outPort,
outGroup,
flags,
match,
instructions
);
}
}
static class Builder implements OFFlowDelete.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 465 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 465 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 492 |
return new OFFlowModifyStrictVer11(
xid,
cookie,
cookieMask,
tableId,
idleTimeout,
hardTimeout,
priority,
bufferId,
outPort,
outGroup,
flags,
match,
instructions
);
}
}
static class Builder implements OFFlowModifyStrict.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 465 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 465 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 490 |
return new OFFlowModifyVer11(
xid,
cookie,
cookieMask,
tableId,
idleTimeout,
hardTimeout,
priority,
bufferId,
outPort,
outGroup,
flags,
match,
instructions
);
}
}
static class Builder implements OFFlowModify.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 222 |
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
long refCount = this.refCountSet ? this.refCount : parentMessage.refCount;
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
List<OFBucketCounter> bucketStats = this.bucketStatsSet ? this.bucketStats : parentMessage.bucketStats;
if(bucketStats == null)
throw new NullPointerException("Property bucketStats must not be null");
//
return new OFGroupStatsEntryVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 119 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableModVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 119 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 119 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModVer14.java | 128 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModVer14.java | 217 |
}
@Override
public OFType getType() {
return OFType.TABLE_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableMod.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableMod.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getConfig() {
return config;
}
@Override
public OFTableMod.Builder setConfig(long config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public List<OFTableModProp> getProperties()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestCodeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestCodeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestCodeSerializerVer14.java | 30 |
public class OFBadRequestCodeSerializerVer12 {
public final static short BAD_VERSION_VAL = (short) 0x0;
public final static short BAD_TYPE_VAL = (short) 0x1;
public final static short BAD_STAT_VAL = (short) 0x2;
public final static short BAD_EXPERIMENTER_VAL = (short) 0x3;
public final static short BAD_EXPERIMENTER_TYPE_VAL = (short) 0x4;
public final static short EPERM_VAL = (short) 0x5;
public final static short BAD_LEN_VAL = (short) 0x6;
public final static short BUFFER_EMPTY_VAL = (short) 0x7;
public final static short BUFFER_UNKNOWN_VAL = (short) 0x8;
public final static short BAD_TABLE_ID_VAL = (short) 0x9;
public final static short IS_SLAVE_VAL = (short) 0xa;
public final static short BAD_PORT_VAL = (short) 0xb;
public final static short BAD_PACKET_VAL = (short) 0xc;
public static OFBadRequestCode readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 302 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 302 |
public void write(ChannelBuffer bb, OFBsnGentableEntryDescStatsEntryVer13 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// keyLength is length indicator for key, will be
// udpated when key has been written
int keyLengthIndex = bb.writerIndex();
bb.writeShort(0);
message.checksum.write16Bytes(bb);
int keyStartIndex = bb.writerIndex();
ChannelUtils.writeList(bb, message.key);
// update field length member keyLength
int keyLength = bb.writerIndex() - keyStartIndex;
bb.setShort(keyLengthIndex, keyLength);
ChannelUtils.writeList(bb, message.value);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnGentableEntryDescStatsEntryVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 496 |
public OFPortOptical build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : DEFAULT_CONFIG;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : DEFAULT_STATE;
if(state == null)
throw new NullPointerException("Property state must not be null");
List<OFPortDescPropOpticalTransport> desc = this.descSet ? this.desc : DEFAULT_DESC; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 989 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 411 |
if (rxFrameErr == null) {
if (other.rxFrameErr != null)
return false;
} else if (!rxFrameErr.equals(other.rxFrameErr))
return false;
if (rxOverErr == null) {
if (other.rxOverErr != null)
return false;
} else if (!rxOverErr.equals(other.rxOverErr))
return false;
if (rxCrcErr == null) {
if (other.rxCrcErr != null)
return false;
} else if (!rxCrcErr.equals(other.rxCrcErr))
return false;
if (collisions == null) {
if (other.collisions != null)
return false;
} else if (!collisions.equals(other.collisions))
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHeaderVer10.java | 39 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraHeaderVer10.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 704 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 704 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 704 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 704 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 704 |
OFBsnVportL2GreFlagsSerializerVer10.putTo(message.flags, sink);
message.portNo.putTo(sink);
message.loopbackPortNo.putTo(sink);
message.localMac.putTo(sink);
message.nhMac.putTo(sink);
message.srcIp.putTo(sink);
message.dstIp.putTo(sink);
sink.putShort(message.dscp);
sink.putShort(message.ttl);
// skip pad (2 bytes)
sink.putLong(message.vpn);
sink.putLong(message.rateLimit);
sink.putString(message.ifName);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnVportL2GreVer10> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsReplyVer10.java | 95 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsReplyVer11.java | 95 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsReplyVer12.java | 95 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsReplyVer13.java | 95 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsReplyVer14.java | 95 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public String getMfrDesc() {
return mfrDesc;
}
@Override
public String getHwDesc() {
return hwDesc;
}
@Override
public String getSwDesc() {
return swDesc;
}
@Override
public String getSerialNum() {
return serialNum;
}
@Override
public String getDpDesc() {
return dpDesc;
}
public OFDescStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFDescStatsReply.Builder {
final OFDescStatsReplyVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 303 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 320 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 320 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 320 |
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 477 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 521 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 499 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 521 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 521 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 10
byte type = bb.readByte();
if(type != (byte) 0xa)
throw new OFParseError("Wrong type: Expected=OFType.PACKET_IN(10), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBadInstructionCodeSerializerVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadInstructionCodeSerializerVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadInstructionCodeSerializerVer13.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadInstructionCodeSerializerVer14.java | 43 |
public static OFBadInstructionCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadInstructionCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadInstructionCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadInstructionCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_INST_VAL:
return OFBadInstructionCode.UNKNOWN_INST;
case UNSUP_INST_VAL:
return OFBadInstructionCode.UNSUP_INST;
case BAD_TABLE_ID_VAL:
return OFBadInstructionCode.BAD_TABLE_ID;
case UNSUP_METADATA_VAL:
return OFBadInstructionCode.UNSUP_METADATA;
case UNSUP_METADATA_MASK_VAL:
return OFBadInstructionCode.UNSUP_METADATA_MASK;
case UNSUP_EXP_INST_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnHeaderVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver11/OFNiciraHeaderVer11.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 441 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 441 |
public void write(ChannelBuffer bb, OFGroupStatsEntryVer11 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// pad: 2 bytes
bb.writeZero(2);
message.group.write4Bytes(bb);
bb.writeInt(U32.t(message.refCount));
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.packetCount.getValue());
bb.writeLong(message.byteCount.getValue());
ChannelUtils.writeList(bb, message.bucketStats);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFGroupStatsEntryVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnHeaderVer12.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFNiciraHeaderVer12.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 184 |
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 184 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 113 |
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
@Override
public OFBsnGentableEntryDescStatsEntry.Builder setValue(List<OFBsnTlv> value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 78 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
public OFBsnGentableEntryDescStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableEntryDescStatsRequest.Builder {
final OFBsnGentableEntryDescStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 78 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
public OFBsnGentableEntryStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableEntryStatsRequest.Builder {
final OFBsnGentableEntryStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnHeaderVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver13/OFNiciraHeaderVer13.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 181 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x42L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandReplyVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandReplyVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x42L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaCommandReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 181 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x41L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaCommandRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaCommandRequestVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaCommandRequestVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaCommandRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x41L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaCommandRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaCommandRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 114 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 181 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaNotification.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x43L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaNotification.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFBsnLuaNotification build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaNotificationVer13.java | 181 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaNotificationVer14.java | 114 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnLuaNotification.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x43L;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFBsnLuaNotification.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFBsnLuaNotification build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnHeaderVer14.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFNiciraHeaderVer14.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketOutVer10.java | 125 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 109 |
if (this.getBufferId() == OFBufferId.NO_BUFFER) {
if (this.getData().length <= 14) {
this.log.error("PacketOut has no buffer or data {}; dropping",
this);
ChannelBuffer buf = ChannelBuffers.dynamicBuffer();
this.writeTo(buf);
byte[] byte_msg=buf.array();
OFErrorCauseData offendingMsg=OFErrorCauseData.of(byte_msg, OFVersion.OF_10);
final OVXErrorMsg err =(OVXErrorMsg) OVXFactoryInst.myOVXFactory.buildOVXBadRequestErrorMsg(this.getXid(),OFBadRequestCode.BAD_LEN,offendingMsg);
sw.sendMsg(err, sw);
return;
}
this.match = this.loadFromPacket(this.getData(),
this.inPort.getShortPortNumber()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFExperimenterStatsRequestVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver10/OFStatsRequestVer10.java | 38 |
public OFExperimenterStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 16
byte type = bb.readByte();
if(type != (byte) 0x10)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(16), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 503 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 521 |
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0");
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 549 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 575 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 575 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 575 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 348 |
public OFPortDesc build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : DEFAULT_CONFIG;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : DEFAULT_STATE;
if(state == null)
throw new NullPointerException("Property state must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 35 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 35 |
private static final Logger logger = LoggerFactory.getLogger(OFAggregateStatsRequestVer11.class);
// version: 1.1
final static byte WIRE_VERSION = 2;
final static int LENGTH = 136;
private final static long DEFAULT_XID = 0x0L;
private final static Set<OFStatsRequestFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsRequestFlags>of();
private final static TableId DEFAULT_TABLE_ID = TableId.ALL;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static Match DEFAULT_MATCH = OFFactoryVer11.MATCH_WILDCARD_ALL;
// OF message fields
private final long xid;
private final Set<OFStatsRequestFlags> flags;
private final TableId tableId;
private final OFPort outPort;
private final OFGroup outGroup;
private final U64 cookie;
private final U64 cookieMask;
private final Match match;
//
// Immutable default instance
final static OFAggregateStatsRequestVer11 DEFAULT = new OFAggregateStatsRequestVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnStatsRequestVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFExperimenterStatsRequestVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFStatsRequestVer11.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 755 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 776 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 776 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 776 |
OFFlowRemovedVer11 other = (OFFlowRemovedVer11) obj;
if( xid != other.xid)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if( priority != other.priority)
return false;
if( reason != other.reason)
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if (packetCount == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 698 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 698 |
public void funnel(OFFlowStatsEntryVer11 message, PrimitiveSink sink) {
// FIXME: skip funnel of length
message.tableId.putTo(sink);
// skip pad (1 bytes)
sink.putLong(message.durationSec);
sink.putLong(message.durationNsec);
sink.putInt(message.priority);
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
// skip pad (6 bytes)
message.cookie.putTo(sink);
message.packetCount.putTo(sink);
message.byteCount.putTo(sink);
message.match.putTo(sink);
FunnelUtils.putList(message.instructions, sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFFlowStatsEntryVer11> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionExperimenterVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionExperimenterVer12.java | 34 |
public final static OFInstructionExperimenterVer11.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionExperimenter> {
@Override
public OFInstructionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
default:
throw new OFParseError("Unknown value for discriminator experimenter of class OFInstructionExperimenterVer11: " + experimenter); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTypeSerializerVer11.java | 124 |
| org/projectfloodlight/openflow/protocol/ver12/OFTypeSerializerVer12.java | 130 |
| org/projectfloodlight/openflow/protocol/ver13/OFTypeSerializerVer13.java | 142 |
| org/projectfloodlight/openflow/protocol/ver14/OFTypeSerializerVer14.java | 151 |
throw new IllegalArgumentException("Illegal wire value for type OFType in version 1.1: " + val);
}
}
public static byte toWireValue(OFType e) {
switch(e) {
case HELLO:
return HELLO_VAL;
case ERROR:
return ERROR_VAL;
case ECHO_REQUEST:
return ECHO_REQUEST_VAL;
case ECHO_REPLY:
return ECHO_REPLY_VAL;
case EXPERIMENTER:
return EXPERIMENTER_VAL;
case FEATURES_REQUEST:
return FEATURES_REQUEST_VAL;
case FEATURES_REPLY:
return FEATURES_REPLY_VAL;
case GET_CONFIG_REQUEST:
return GET_CONFIG_REQUEST_VAL;
case GET_CONFIG_REPLY:
return GET_CONFIG_REPLY_VAL;
case SET_CONFIG:
return SET_CONFIG_VAL;
case PACKET_IN:
return PACKET_IN_VAL;
case FLOW_REMOVED:
return FLOW_REMOVED_VAL;
case PORT_STATUS:
return PORT_STATUS_VAL;
case PACKET_OUT:
return PACKET_OUT_VAL;
case FLOW_MOD:
return FLOW_MOD_VAL;
case GROUP_MOD:
return GROUP_MOD_VAL;
case PORT_MOD:
return PORT_MOD_VAL;
case TABLE_MOD:
return TABLE_MOD_VAL;
case STATS_REQUEST:
return STATS_REQUEST_VAL;
case STATS_REPLY:
return STATS_REPLY_VAL;
case BARRIER_REQUEST:
return BARRIER_REQUEST_VAL;
case BARRIER_REPLY:
return BARRIER_REPLY_VAL;
case QUEUE_GET_CONFIG_REQUEST: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 35 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 35 |
private static final Logger logger = LoggerFactory.getLogger(OFAggregateStatsRequestVer12.class);
// version: 1.2
final static byte WIRE_VERSION = 3;
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static Set<OFStatsRequestFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsRequestFlags>of();
private final static TableId DEFAULT_TABLE_ID = TableId.ALL;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static Match DEFAULT_MATCH = OFFactoryVer12.MATCH_WILDCARD_ALL;
// OF message fields
private final long xid;
private final Set<OFStatsRequestFlags> flags;
private final TableId tableId;
private final OFPort outPort;
private final OFGroup outGroup;
private final U64 cookie;
private final U64 cookieMask;
private final Match match;
//
// Immutable default instance
final static OFAggregateStatsRequestVer12 DEFAULT = new OFAggregateStatsRequestVer12( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnStatsRequestVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterStatsRequestVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsRequestVer12.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 242 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionCircuitVer13.java | 213 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 242 |
public OFActionBsnGentable readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 35 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 35 |
private static final Logger logger = LoggerFactory.getLogger(OFAggregateStatsRequestVer13.class);
// version: 1.3
final static byte WIRE_VERSION = 4;
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static Set<OFStatsRequestFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsRequestFlags>of();
private final static TableId DEFAULT_TABLE_ID = TableId.ALL;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static Match DEFAULT_MATCH = OFFactoryVer13.MATCH_WILDCARD_ALL;
// OF message fields
private final long xid;
private final Set<OFStatsRequestFlags> flags;
private final TableId tableId;
private final OFPort outPort;
private final OFGroup outGroup;
private final U64 cookie;
private final U64 cookieMask;
private final Match match;
//
// Immutable default instance
final static OFAggregateStatsRequestVer13 DEFAULT = new OFAggregateStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnStatsRequestVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientStatsRequestVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterStatsRequestVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsRequestVer13.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 144 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 144 |
return new OFBsnTlvReferenceVer13(
tableId,
key
);
}
}
static class Builder implements OFBsnTlvReference.Builder {
// OF message fields
private boolean tableIdSet;
private int tableId;
private boolean keySet;
private List<OFBsnTlv> key;
@Override
public int getType() {
return 0x3b;
}
@Override
public int getTableId() {
return tableId;
}
@Override
public OFBsnTlvReference.Builder setTableId(int tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnTlvReference.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 177 |
@Override
public int getType() {
return 0x2;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDscpRemark.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDscpRemark.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public short getPrecLevel() {
return precLevel;
}
@Override
public OFMeterBandDscpRemark.Builder setPrecLevel(short precLevel) {
this.precLevel = precLevel;
this.precLevelSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 177 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 107 |
@Override
public int getType() {
return 0x2;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDscpRemark.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDscpRemark.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public short getPrecLevel() {
return precLevel;
}
@Override
public OFMeterBandDscpRemark.Builder setPrecLevel(short precLevel) {
this.precLevel = precLevel;
this.precLevelSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 177 |
@Override
public int getType() {
return 0xffff;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandExperimenter.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandExperimenter.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFMeterBandExperimenter.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 177 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 107 |
@Override
public int getType() {
return 0xffff;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandExperimenter.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandExperimenter.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public long getExperimenter() {
return experimenter;
}
@Override
public OFMeterBandExperimenter.Builder setExperimenter(long experimenter) {
this.experimenter = experimenter;
this.experimenterSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropExperimenterMissVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropExperimenterMissVer14.java | 34 |
public final static OFTableFeaturePropExperimenterMissVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropExperimenterMiss> {
@Override
public OFTableFeaturePropExperimenterMiss readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 0xffff
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=0xffff(0xffff), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
default:
throw new OFParseError("Unknown value for discriminator experimenter of class OFTableFeaturePropExperimenterMissVer13: " + experimenter); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropExperimenterVer14.java | 34 |
public final static OFTableFeaturePropExperimenterVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFTableFeaturePropExperimenter> {
@Override
public OFTableFeaturePropExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 0xfffe
short type = bb.readShort();
if(type != (short) 0xfffe)
throw new OFParseError("Wrong type: Expected=0xfffe(0xfffe), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
default:
throw new OFParseError("Unknown value for discriminator experimenter of class OFTableFeaturePropExperimenterVer13: " + experimenter); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 35 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 35 |
private static final Logger logger = LoggerFactory.getLogger(OFAggregateStatsRequestVer14.class);
// version: 1.4
final static byte WIRE_VERSION = 5;
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static Set<OFStatsRequestFlags> DEFAULT_FLAGS = ImmutableSet.<OFStatsRequestFlags>of();
private final static TableId DEFAULT_TABLE_ID = TableId.ALL;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static Match DEFAULT_MATCH = OFFactoryVer14.MATCH_WILDCARD_ALL;
// OF message fields
private final long xid;
private final Set<OFStatsRequestFlags> flags;
private final TableId tableId;
private final OFPort outPort;
private final OFGroup outGroup;
private final U64 cookie;
private final U64 cookieMask;
private final Match match;
//
// Immutable default instance
final static OFAggregateStatsRequestVer14 DEFAULT = new OFAggregateStatsRequestVer14( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnStatsRequestVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterStatsRequestVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsRequestVer14.java | 38 |
public OFBsnStatsRequest<?> readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnVer10.java | 39 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnVer12.java | 39 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnVer14.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnVer14.java | 39 |
public OFActionBsn readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x4:
// discriminator value 0x4L=0x4L for class OFActionBsnChecksumVer10
return OFActionBsnChecksumVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 482 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 482 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 482 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 482 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 482 |
bb.writeByte((byte) 0x1);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// fixed value property length = 32
bb.writeShort((short) 0x20);
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0xbL
bb.writeInt(0xb);
bb.writeByte(message.enabled ? 1 : 0);
// pad: 1 bytes
bb.writeZero(1);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeLong(message.cookie.getValue());
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnSetPktinSuppressionRequestVer10("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 302 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 521 |
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0");
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 503 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 312 |
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0");
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 504 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 535 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 535 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 535 |
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 235 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 235 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 235 |
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId;
U64 txBytes = this.txBytesSet ? this.txBytes : parentMessage.txBytes;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : parentMessage.txPackets;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : parentMessage.txErrors;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
//
return new OFQueueStatsEntryVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsRequestVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsRequestVer14.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 0
short statsType = bb.readShort();
if(statsType != (short) 0x0) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 231 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 231 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 231 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 231 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 7
short statsType = bb.readShort();
if(statsType != (short) 0x7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsRequestVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsRequestVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 314 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 261 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsRequestVer13.java | 269 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsRequestVer13.java | 269 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 314 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 261 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsRequestVer14.java | 269 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsRequestVer14.java | 269 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsRequestVer14.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 314 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 6
short statsType = bb.readShort();
if(statsType != (short) 0x6) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsRequestVer11.java | 276 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 314 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsRequestVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsRequestVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsRequestVer14.java | 276 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 18
byte type = bb.readByte();
if(type != (byte) 0x12)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 4
short statsType = bb.readShort();
if(statsType != (short) 0x4) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 215 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 215 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 215 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 22
byte type = bb.readByte();
if(type != (byte) 0x16)
throw new OFParseError("Wrong type: Expected=OFType.QUEUE_GET_CONFIG_REQUEST(22), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFPort port = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 172 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getEntryCount() {
return entryCount;
}
@Override
public OFBsnGentableStatsEntry.Builder setEntryCount(long entryCount) {
this.entryCount = entryCount;
this.entryCountSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnGentableStatsEntry build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 540 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 540 |
sink.putByte((byte) 0x4);
// fixed value property type = 4
sink.putByte((byte) 0x4);
// fixed value property length = 38
sink.putShort((short) 0x26);
sink.putLong(message.xid);
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0x29L
sink.putInt(0x29);
sink.putShort(message.enabled);
// skip pad (3 bytes)
message.portNo.putTo(sink);
sink.putInt(message.actorSysPriority);
message.actorSysMac.putTo(sink);
sink.putInt(message.actorPortPriority);
sink.putInt(message.actorPortNum);
sink.putInt(message.actorKey);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnSetLacpRequestVer13> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterConstantsSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterConstantsSerializerVer14.java | 30 |
public class OFBsnVlanCounterConstantsSerializerVer13 {
public final static short BSN_VLAN_ALL_VAL = (short) 0xffff;
public static OFBsnVlanCounterConstants readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(U8.f(bb.readByte()));
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnVlanCounterConstants e) {
bb.writeByte(U8.t(toWireValue(e)));
}
public static void putTo(OFBsnVlanCounterConstants e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBsnVlanCounterConstants ofWireValue(short val) {
switch(val) {
case BSN_VLAN_ALL_VAL:
return OFBsnVlanCounterConstants.BSN_VLAN_ALL;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnVlanCounterConstants in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 450 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 391 |
public OFCalientFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout;
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 1049 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 886 |
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 75 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 75 |
throw new NullPointerException("OFGroupStatsEntryVer13: property bucketStats cannot be null");
}
this.group = group;
this.refCount = refCount;
this.packetCount = packetCount;
this.byteCount = byteCount;
this.durationSec = durationSec;
this.durationNsec = durationNsec;
this.bucketStats = bucketStats;
}
// Accessors for OF message fields
@Override
public OFGroup getGroup() {
return group;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnVer14.java | 38 |
public OFInstructionBsn readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x1:
// discriminator value 0x1L=0x1L for class OFInstructionBsnArpOffloadVer13
return OFInstructionBsnArpOffloadVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 72 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 72 |
throw new NullPointerException("OFMeterStatsVer13: property bandStats cannot be null");
}
this.meterId = meterId;
this.flowCount = flowCount;
this.packetInCount = packetInCount;
this.byteInCount = byteInCount;
this.durationSec = durationSec;
this.durationNsec = durationNsec;
this.bandStats = bandStats;
}
// Accessors for OF message fields
@Override
public long getMeterId() {
return meterId;
}
@Override
public long getFlowCount() {
return flowCount;
}
@Override
public U64 getPacketInCount() {
return packetInCount;
}
@Override
public U64 getByteInCount() {
return byteInCount;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public List<OFMeterBandStats> getBandStats() {
return bandStats;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 78 |
throw new NullPointerException("OFTableFeaturesVer13: property properties cannot be null");
}
this.tableId = tableId;
this.name = name;
this.metadataMatch = metadataMatch;
this.metadataWrite = metadataWrite;
this.config = config;
this.maxEntries = maxEntries;
this.properties = properties;
}
// Accessors for OF message fields
@Override
public TableId getTableId() {
return tableId;
}
@Override
public String getName() {
return name;
}
@Override
public U64 getMetadataMatch() {
return metadataMatch;
}
@Override
public U64 getMetadataWrite() {
return metadataWrite;
}
@Override
public long getConfig() {
return config;
}
@Override
public long getMaxEntries() {
return maxEntries;
}
@Override
public List<OFTableFeatureProp> getProperties() {
return properties;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetReplyVer14.java | 71 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetRequestVer14.java | 71 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncSetVer14.java | 71 |
}
@Override
public long getXid() {
return xid;
}
@Override
public long getPacketInMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPacketInMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property packetInMaskSlave not supported in version 1.4");
}
@Override
public long getPortStatusMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskEqualMaster not supported in version 1.4");
}
@Override
public long getPortStatusMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property portStatusMaskSlave not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskEqualMaster()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskEqualMaster not supported in version 1.4");
}
@Override
public long getFlowRemovedMaskSlave()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property flowRemovedMaskSlave not supported in version 1.4");
}
@Override
public List<OFAsyncConfigProp> getProperties() {
return properties;
}
public OFAsyncGetReply.Builder createBuilder() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 172 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getEntryCount() {
return entryCount;
}
@Override
public OFBsnGentableStatsEntry.Builder setEntryCount(long entryCount) {
this.entryCount = entryCount;
this.entryCountSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnGentableStatsEntry build() { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/statistics/ver10/OVXAggregateStatsRequestVer10.java | 102 |
| net/onrc/openvirtex/messages/statistics/ver10/OVXFlowStatsRequestVer10.java | 116 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXAggregateStatsRequestVer13.java | 100 |
| net/onrc/openvirtex/messages/statistics/ver13/OVXFlowStatsRequestVer13.java | 111 |
}
private List<PhysicalSwitch> getPhysicalSwitches(OVXSwitch sw) {
if (sw instanceof OVXSingleSwitch) {
try {
return sw.getMap().getPhysicalSwitches(sw);
} catch (SwitchMappingException e) {
log.debug("OVXSwitch {} does not map to any physical switches",
sw.getSwitchName());
return new LinkedList<>();
}
}
LinkedList<PhysicalSwitch> sws = new LinkedList<PhysicalSwitch>();
for (OVXPort p : sw.getPorts().values()) {
if (!sws.contains(p.getPhysicalPort().getParentSwitch())) {
sws.add(p.getPhysicalPort().getParentSwitch());
}
}
return sws;
}
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 312 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 194 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 197 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 195 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 199 |
if (inPort != null
&& inPort.isLink()
&& (!this.getMatch().isFullyWildcarded(MatchField.ETH_DST) || !this.getMatch().isFullyWildcarded(MatchField.ETH_SRC))) {
// rewrite the OFMatch with the values of the link
OVXPort dstPort = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getNeighborPort(inPort);
OVXLink link = sw.getMap()
.getVirtualNetwork(sw.getTenantId())
.getLink(dstPort, inPort);
if (inPort != null && link != null) {
try {
Integer flowId = sw
.getMap()
.getVirtualNetwork(sw.getTenantId())
.getFlowManager()
.getFlowId(((OFMatchV1)this.match).getEthSrc().getBytes(), | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionExperimenterVer10.java | 34 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionExperimenterVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionExperimenterVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionExperimenterVer14.java | 34 |
public final static OFActionExperimenterVer10.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionExperimenter> {
@Override
public OFActionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
case 0x5c16c7:
// discriminator value 0x5c16c7L=0x5c16c7L for class OFActionBsnVer10
return OFActionBsnVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 303 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 313 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 535 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 535 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 535 |
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 504 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 522 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 320 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 320 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 320 |
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFFlowRemoved.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFFlowRemoved.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public Match getMatch() {
return match;
}
@Override
public OFFlowRemoved.Builder setMatch(Match match) {
this.match = match;
this.matchSet = true;
return this;
}
//
@Override
public OFFlowRemoved build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 656 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 656 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 656 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 656 |
Set<OFBsnVportL2GreFlags> flags = OFBsnVportL2GreFlagsSerializerVer11.readFrom(bb);
OFPort portNo = OFPort.read4Bytes(bb);
OFPort loopbackPortNo = OFPort.read4Bytes(bb);
MacAddress localMac = MacAddress.read6Bytes(bb);
MacAddress nhMac = MacAddress.read6Bytes(bb);
IPv4Address srcIp = IPv4Address.read4Bytes(bb);
IPv4Address dstIp = IPv4Address.read4Bytes(bb);
short dscp = U8.f(bb.readByte());
short ttl = U8.f(bb.readByte());
// pad: 2 bytes
bb.skipBytes(2);
long vpn = U32.f(bb.readInt());
long rateLimit = U32.f(bb.readInt());
String ifName = ChannelUtils.readFixedLengthString(bb, 16); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 775 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 775 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 775 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 775 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 775 |
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.ADD(0), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer11.readFrom(bb);
// pad: 2 bytes
bb.skipBytes(2);
Match match = ChannelUtilsVer11.readOFMatch(bb);
List<OFInstruction> instructions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 775 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 775 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 775 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 775 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 775 |
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.ADD(0), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer12.readFrom(bb);
// pad: 2 bytes
bb.skipBytes(2);
Match match = ChannelUtilsVer12.readOFMatch(bb);
List<OFInstruction> instructions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionVer12.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdExperimenterVer14.java | 34 |
public final static OFActionIdExperimenterVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionIdExperimenter> {
@Override
public OFActionIdExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
case 0x5c16c7:
// discriminator value 0x5c16c7L=0x5c16c7L for class OFActionIdBsnVer13
return OFActionIdBsnVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 107 |
BuilderWithParent(OFBsnDebugCounterDescStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public String getDescription() {
return description;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setDescription(String description) {
this.description = description;
this.descriptionSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 139 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 139 |
return new OFBsnGentableEntryStatsEntryVer13(
key,
stats
);
}
}
static class Builder implements OFBsnGentableEntryStatsEntry.Builder {
// OF message fields
private boolean keySet;
private List<OFBsnTlv> key;
private boolean statsSet;
private List<OFBsnTlv> stats;
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getStats() {
return stats;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setStats(List<OFBsnTlv> stats) {
this.stats = stats;
this.statsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 99 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 99 |
BuilderWithParent(OFBsnGentableStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getEntryCount() {
return entryCount;
}
@Override
public OFBsnGentableStatsEntry.Builder setEntryCount(long entryCount) {
this.entryCount = entryCount;
this.entryCountSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 819 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 815 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 814 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 815 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 813 |
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.ADD(0), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read4Bytes(bb);
OFGroup outGroup = OFGroup.read4Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer13.readFrom(bb);
// pad: 2 bytes
bb.skipBytes(2);
Match match = ChannelUtilsVer13.readOFMatch(bb);
List<OFInstruction> instructions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionExperimenterVer14.java | 34 |
public final static OFInstructionExperimenterVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionExperimenter> {
@Override
public OFInstructionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
case 0x5c16c7:
// discriminator value 0x5c16c7L=0x5c16c7L for class OFInstructionBsnVer13
return OFInstructionBsnVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdExperimenterVer14.java | 34 |
public final static OFInstructionIdExperimenterVer13.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionIdExperimenter> {
@Override
public OFInstructionIdExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
case 0x5c16c7:
// discriminator value 0x5c16c7L=0x5c16c7L for class OFInstructionIdBsnVer13
return OFInstructionIdBsnVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/OFAsyncGetReply.java | 46 |
| org/projectfloodlight/openflow/protocol/OFAsyncGetRequest.java | 46 |
| org/projectfloodlight/openflow/protocol/OFAsyncSet.java | 47 |
OFAsyncGetReply build();
OFVersion getVersion();
OFType getType();
long getXid();
Builder setXid(long xid);
long getPacketInMaskEqualMaster() throws UnsupportedOperationException;
Builder setPacketInMaskEqualMaster(long packetInMaskEqualMaster) throws UnsupportedOperationException;
long getPacketInMaskSlave() throws UnsupportedOperationException;
Builder setPacketInMaskSlave(long packetInMaskSlave) throws UnsupportedOperationException;
long getPortStatusMaskEqualMaster() throws UnsupportedOperationException;
Builder setPortStatusMaskEqualMaster(long portStatusMaskEqualMaster) throws UnsupportedOperationException;
long getPortStatusMaskSlave() throws UnsupportedOperationException;
Builder setPortStatusMaskSlave(long portStatusMaskSlave) throws UnsupportedOperationException;
long getFlowRemovedMaskEqualMaster() throws UnsupportedOperationException;
Builder setFlowRemovedMaskEqualMaster(long flowRemovedMaskEqualMaster) throws UnsupportedOperationException;
long getFlowRemovedMaskSlave() throws UnsupportedOperationException;
Builder setFlowRemovedMaskSlave(long flowRemovedMaskSlave) throws UnsupportedOperationException;
List<OFAsyncConfigProp> getProperties() throws UnsupportedOperationException;
Builder setProperties(List<OFAsyncConfigProp> properties) throws UnsupportedOperationException;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionTypeSerializerVer10.java | 44 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionTypeSerializerVer11.java | 57 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFActionType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFActionType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFActionType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFActionType ofWireValue(short val) {
switch(val) {
case OUTPUT_VAL:
return OFActionType.OUTPUT;
case SET_VLAN_VID_VAL:
return OFActionType.SET_VLAN_VID;
case SET_VLAN_PCP_VAL:
return OFActionType.SET_VLAN_PCP;
case STRIP_VLAN_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 260 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 260 |
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : parentMessage.match;
if(match == null)
throw new NullPointerException("Property match must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : parentMessage.outPort;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
//
return new OFAggregateStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x16L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnBwClearDataReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnBwClearDataReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x14L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnBwEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
//
@Override
public OFBsnBwEnableGetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x12L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnBwEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
//
@Override
public OFBsnBwEnableSetRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringReply.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
//
@Override
public OFBsnGetMirroringReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetMirroringRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetMirroringRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnGetMirroringRequest.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
//
@Override
public OFBsnGetMirroringRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHeaderVer10.java | 39 |
| org/projectfloodlight/openflow/protocol/ver10/OFExperimenterVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraHeaderVer10.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetMirroringVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetMirroring.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public short getReportMirrorPorts() {
return reportMirrorPorts;
}
@Override
public OFBsnSetMirroring.Builder setReportMirrorPorts(short reportMirrorPorts) {
this.reportMirrorPorts = reportMirrorPorts;
this.reportMirrorPortsSet = true;
return this;
}
//
@Override
public OFBsnSetMirroring build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x19L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetPktinSuppressionReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnSetPktinSuppressionReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 108 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 108 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 108 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 108 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public OFBsnVport getVport() {
return vport;
}
@Override
public OFBsnVirtualPortCreateRequest.Builder setVport(OFBsnVport vport) {
this.vport = vport;
this.vportSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortCreateRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveReplyVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1aL;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnVirtualPortRemoveReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortRemoveReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 110 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 175 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 175 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortRemoveRequestVer10.java | 175 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 110 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x11L;
}
@Override
public long getVportNo() {
return vportNo;
}
@Override
public OFBsnVirtualPortRemoveRequest.Builder setVportNo(long vportNo) {
this.vportNo = vportNo;
this.vportNoSet = true;
return this;
}
//
@Override
public OFBsnVirtualPortRemoveRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFExperimenterStatsReplyVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver10/OFStatsReplyVer10.java | 38 |
public OFExperimenterStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 1
byte version = bb.readByte();
if(version != (byte) 0x1)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 17
byte type = bb.readByte();
if(type != (byte) 0x11)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 41 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 41 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 41 |
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static MacAddress DEFAULT_HW_ADDR = MacAddress.NONE;
private final static String DEFAULT_NAME = "";
private final static Set<OFPortConfig> DEFAULT_CONFIG = ImmutableSet.<OFPortConfig>of();
private final static Set<OFPortState> DEFAULT_STATE = ImmutableSet.<OFPortState>of();
private final static Set<OFPortFeatures> DEFAULT_CURR = ImmutableSet.<OFPortFeatures>of();
private final static Set<OFPortFeatures> DEFAULT_ADVERTISED = ImmutableSet.<OFPortFeatures>of();
private final static Set<OFPortFeatures> DEFAULT_SUPPORTED = ImmutableSet.<OFPortFeatures>of();
private final static Set<OFPortFeatures> DEFAULT_PEER = ImmutableSet.<OFPortFeatures>of(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 235 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 235 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 235 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 249 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 260 |
}
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : parentMessage.queueId;
U64 txBytes = this.txBytesSet ? this.txBytes : parentMessage.txBytes;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : parentMessage.txPackets;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : parentMessage.txErrors;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnHeaderVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver11/OFExperimenterVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFNiciraHeaderVer11.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnStatsReplyVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFExperimenterStatsReplyVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFStatsReplyVer11.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 2
byte version = bb.readByte();
if(version != (byte) 0x2)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 484 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 484 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 484 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 484 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 484 |
static class Builder implements OFFlowAdd.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 232 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 232 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 232 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 232 |
return new OFGroupDescStatsEntryVer11(
groupType,
group,
buckets
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFGroupDescStatsEntry> {
@Override
public OFGroupDescStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
OFGroupType groupType = OFGroupTypeSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnHeaderVer12.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFNiciraHeaderVer12.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnStatsReplyVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterStatsReplyVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsReplyVer12.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 3
byte version = bb.readByte();
if(version != (byte) 0x3)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 484 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 484 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 484 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 484 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 484 |
static class Builder implements OFFlowAdd.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002b04L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOpMasked.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ArpOpcode getMask() {
return mask;
}
@Override
public OFOxmArpOpMasked.Builder setMask(ArpOpcode mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x8000310cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpShaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpShaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002d08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpSpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x8000330cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpThaMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmArpThaMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpaMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmArpTpaMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x30f08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnEgrPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30702L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedMaskedVer13.java | 123 |
@Override
public long getTypeLen() {
return 0x30702L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnGlobalVrfAllowedMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x30120L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask128 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts128Masked.Builder setMask(OFBitMask128 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32780L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBitMask512 getMask() {
return mask;
}
@Override
public OFOxmBsnInPorts512Masked.Builder setMask(OFBitMask512 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnIngressPortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x32502L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitMaskedVer13.java | 123 |
@Override
public long getTypeLen() {
return 0x32502L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmBsnL2CacheHitMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 197 |
@Override
public long getTypeLen() {
return 0x30d08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdMaskedVer13.java | 123 |
@Override
public long getTypeLen() {
return 0x30d08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3DstClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x30908L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3InterfaceClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x30b08L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnL3SrcClassIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x30308L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagIdMasked.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public LagId getMask() {
return mask;
}
@Override
public OFOxmBsnLagIdMasked.Builder setMask(LagId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32104L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmBsnTcpFlagsMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31108L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf0Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31308L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf1Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31508L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf2Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31708L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf3Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31908L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf4Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31b08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf5Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31d08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf6Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7MaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7MaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7MaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x31f08L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7Masked.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public UDF getMask() {
return mask;
}
@Override
public OFOxmBsnUdf7Masked.Builder setMask(UDF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32308L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ClassId getMask() {
return mask;
}
@Override
public OFOxmBsnVlanXlatePortGroupIdMasked.Builder setMask(ClassId mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x30508L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrfMasked.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VRF getMask() {
return mask;
}
@Override
public OFOxmBsnVrfMasked.Builder setMask(VRF mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x8000070cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x8000090cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80000b04L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthTypeMasked.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public EthType getMask() {
return mask;
}
@Override
public OFOxmEthTypeMasked.Builder setMask(EthType mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002902L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Code getMask() {
return mask;
}
@Override
public OFOxmIcmpv4CodeMasked.Builder setMask(ICMPv4Code mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002702L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public ICMPv4Type getMask() {
return mask;
}
@Override
public OFOxmIcmpv4TypeMasked.Builder setMask(ICMPv4Type mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80003d02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6CodeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80003b02L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmIcmpv6TypeMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80000308L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPhyPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80000108L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPortMasked.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFPort getMask() {
return mask;
}
@Override
public OFOxmInPortMasked.Builder setMask(OFPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001102L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscpMasked.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpDscp getMask() {
return mask;
}
@Override
public OFOxmIpDscpMasked.Builder setMask(IpDscp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001302L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcnMasked.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpEcn getMask() {
return mask;
}
@Override
public OFOxmIpEcnMasked.Builder setMask(IpEcn mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001502L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProtoMasked.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IpProtocol getMask() {
return mask;
}
@Override
public OFOxmIpProtoMasked.Builder setMask(IpProtocol mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001908L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001708L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80003720L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6DstMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6DstMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80003908L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6FlowLabel getMask() {
return mask;
}
@Override
public OFOxmIpv6FlabelMasked.Builder setMask(IPv6FlowLabel mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x8000410cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdSllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80003f20L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTargetMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x8000430cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmIpv6NdTllMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80003520L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6SrcMasked.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv6Address getMask() {
return mask;
}
@Override
public OFOxmIpv6SrcMasked.Builder setMask(IPv6Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80000510L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadataMasked.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFMetadata getMask() {
return mask;
}
@Override
public OFOxmMetadataMasked.Builder setMask(OFMetadata mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80004508L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabelMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmMplsLabelMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80004702L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTcMasked.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U8 getMask() {
return mask;
}
@Override
public OFOxmMplsTcMasked.Builder setMask(U8 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002504L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002304L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmSctpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001d04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001b04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmTcpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x14108L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4DstMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x13f08L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public IPv4Address getMask() {
return mask;
}
@Override
public OFOxmTunnelIpv4SrcMasked.Builder setMask(IPv4Address mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80002104L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDstMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpDstMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80001f04L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrcMasked.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public TransportPort getMask() {
return mask;
}
@Override
public OFOxmUdpSrcMasked.Builder setMask(TransportPort mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80000f02L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcpMasked.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public VlanPcp getMask() {
return mask;
}
@Override
public OFOxmVlanPcpMasked.Builder setMask(VlanPcp mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 123 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidMaskedVer12.java | 197 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80000d04L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVidMasked.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVlanVidMatch getMask() {
return mask;
}
@Override
public OFOxmVlanVidMasked.Builder setMask(OFVlanVidMatch mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x27L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x27L;
}
@Override
public long getEnabled() {
return enabled;
}
@Override
public OFBsnFlowIdleEnableGetReply.Builder setEnabled(long enabled) {
this.enabled = enabled;
this.enabledSet = true;
return this;
}
//
@Override
public OFBsnFlowIdleEnableGetReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x24L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
@Override
public OFBsnFlowIdleEnableSetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x24L;
}
@Override
public long getEnable() {
return enable;
}
@Override
public OFBsnFlowIdleEnableSetRequest.Builder setEnable(long enable) {
this.enable = enable;
this.enableSet = true;
return this;
}
//
@Override
public OFBsnFlowIdleEnableSetRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 233 |
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : parentMessage.flags;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
GenTableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : parentMessage.checksumMask;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
//
return new OFBsnGentableEntryDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 180 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x34L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnGetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 180 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 113 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x34L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnGetSwitchPipelineReply.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
//
@Override
public OFBsnGetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnHeaderVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFNiciraHeaderVer13.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3aL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
@Override
public OFBsnSetAuxCxnsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3aL;
}
@Override
public long getNumAux() {
return numAux;
}
@Override
public OFBsnSetAuxCxnsRequest.Builder setNumAux(long numAux) {
this.numAux = numAux;
this.numAuxSet = true;
return this;
}
//
@Override
public OFBsnSetAuxCxnsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 175 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x36L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 175 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 110 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x36L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFBsnSetSwitchPipelineReply.Builder setStatus(long status) {
this.status = status;
this.statusSet = true;
return this;
}
//
@Override
public OFBsnSetSwitchPipelineReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 180 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x35L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
@Override
public OFBsnSetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 180 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 113 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x35L;
}
@Override
public String getPipeline() {
return pipeline;
}
@Override
public OFBsnSetSwitchPipelineRequest.Builder setPipeline(String pipeline) {
this.pipeline = pipeline;
this.pipelineSet = true;
return this;
}
//
@Override
public OFBsnSetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterStatsReplyVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsReplyVer13.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 4
byte version = bb.readByte();
if(version != (byte) 0x4)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_13(4), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 113 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 180 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2dL;
}
@Override
public U64 getTimeMs() {
return timeMs;
}
@Override
public OFBsnTimeReply.Builder setTimeMs(U64 timeMs) {
this.timeMs = timeMs;
this.timeMsSet = true;
return this;
}
@Override
public OFBsnTimeReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 180 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 113 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2dL;
}
@Override
public U64 getTimeMs() {
return timeMs;
}
@Override
public OFBsnTimeReply.Builder setTimeMs(U64 timeMs) {
this.timeMs = timeMs;
this.timeMsSet = true;
return this;
}
//
@Override
public OFBsnTimeReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 515 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 511 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 510 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 511 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 509 |
static class Builder implements OFFlowAdd.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean cookieMaskSet;
private U64 cookieMask;
private boolean tableIdSet;
private TableId tableId;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean outGroupSet;
private OFGroup outGroup;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean matchSet;
private Match match;
private boolean instructionsSet;
private List<OFInstruction> instructions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32d0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32d0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthDstMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32f0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32f0cL;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MacAddress getMask() {
return mask;
}
@Override
public OFOxmBsnInnerEthSrcMasked.Builder setMask(MacAddress mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x32b08L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x32b08L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U32 getMask() {
return mask;
}
@Override
public OFOxmBsnVxlanNetworkIdMasked.Builder setMask(U32 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004f04L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80004f04L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U16 getMask() {
return mask;
}
@Override
public OFOxmIpv6ExthdrMasked.Builder setMask(U16 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004902L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBosMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmMplsBosMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80004902L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBosMasked.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFBooleanValue getMask() {
return mask;
}
@Override
public OFOxmMplsBosMasked.Builder setMask(OFBooleanValue mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 123 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 197 |
@Override
public long getTypeLen() {
return 0x80004d10L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelIdMasked.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U64 getMask() {
return mask;
}
@Override
public OFOxmTunnelIdMasked.Builder setMask(U64 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdMaskedVer13.java | 197 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdMaskedVer14.java | 123 |
@Override
public long getTypeLen() {
return 0x80004d10L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelIdMasked.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public U64 getMask() {
return mask;
}
@Override
public OFOxmTunnelIdMasked.Builder setMask(U64 mask) {
this.mask = mask;
this.maskSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return true;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnHeaderVer14.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFNiciraHeaderVer14.java | 38 |
public OFBsnHeader readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnStatsReplyVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterStatsReplyVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsReplyVer14.java | 38 |
public OFBsnStatsReply readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 19
byte type = bb.readByte();
if(type != (byte) 0x13)
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort(); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 383 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 405 |
public List<OFPortDesc> getPortList() {
final LinkedList<OFPortDesc> portList = new LinkedList<OFPortDesc>();
for (final OVXPort ovxPort : this.portMap.values()) {
final OFPortDesc ofPort =OVXFactoryInst.myFactory.buildPortDesc()
.setPortNo(ovxPort.getPortNo())
.setName(ovxPort.getName())
.setConfig(ovxPort.getConfig())
.setHwAddr(ovxPort.getHwAddr())
.setState(ovxPort.getState())
.setAdvertised(ovxPort.getAdvertised())
.setCurr(ovxPort.getCurr())
.setSupported(ovxPort.getSupported())
.build();
portList.add(ofPort);
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 195 |
| org/projectfloodlight/openflow/protocol/ver10/OFActionNiciraDecTtlVer10.java | 83 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 195 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionNiciraDecTtlVer11.java | 83 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 195 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionNiciraDecTtlVer12.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 195 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionNiciraDecTtlVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 195 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionNiciraDecTtlVer14.java | 83 |
public OFActionBsnSetTunnelDst readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 76 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 76 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 76 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 76 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 76 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public boolean isEnabled() {
return enabled;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public U64 getCookie() {
return cookie;
}
public OFBsnSetPktinSuppressionRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnSetPktinSuppressionRequest.Builder {
final OFBsnSetPktinSuppressionRequestVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleReplyVer10.java | 241 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleRequestVer10.java | 241 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetMirroringRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetMirroringVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveReplyVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortRemoveRequestVer11.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetMirroringRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetMirroringVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveReplyVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortRemoveRequestVer12.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetMirroringRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetMirroringVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveReplyVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortRemoveRequestVer13.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetMirroringRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsRequestVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetMirroringVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveReplyVer14.java | 238 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortRemoveRequestVer14.java | 238 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length != 20)
throw new OFParseError("Wrong length: Expected=20(20), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 507 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 502 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 502 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 607 |
} else if (!txErrors.equals(other.txErrors))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * (int) (queueId ^ (queueId >>> 32));
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 322 |
| org/projectfloodlight/openflow/protocol/ver11/OFMatchV2Ver11.java | 759 |
private boolean inPortSet;
private OFPort inPort;
private boolean wildcardsSet;
private int wildcards;
private boolean ethSrcSet;
private MacAddress ethSrc;
private boolean ethSrcMaskSet;
private MacAddress ethSrcMask;
private boolean ethDstSet;
private MacAddress ethDst;
private boolean ethDstMaskSet;
private MacAddress ethDstMask;
private boolean vlanVidSet;
private int vlanVid;
private boolean vlanPcpSet;
private short vlanPcp;
private boolean ethTypeSet;
private int ethType;
private boolean ipDscpSet;
private short ipDscp;
private boolean ipProtoSet;
private short ipProto;
private boolean ipv4SrcSet;
private IPv4Address ipv4Src;
private boolean ipv4SrcMaskSet;
private IPv4Address ipv4SrcMask;
private boolean ipv4DstSet;
private IPv4Address ipv4Dst;
private boolean ipv4DstMaskSet;
private IPv4Address ipv4DstMask;
private boolean tcpSrcSet;
private int tcpSrc;
private boolean tcpDstSet;
private int tcpDst;
private boolean mplsLabelSet;
private long mplsLabel;
private boolean mplsTcSet;
private short mplsTc;
private boolean metadataSet;
private U64 metadata;
private boolean metadataMaskSet;
private U64 metadataMask; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnChecksumVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnGentableVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnMirrorVer13.java | 83 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnSetTunnelDstVer13.java | 84 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdCircuitVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnChecksumVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnGentableVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnMirrorVer14.java | 83 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnSetTunnelDstVer14.java | 84 |
public OFActionIdBsnChecksum readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 414 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 414 |
return new OFBsnLacpConvergenceNotifVer13(
xid,
convergenceStatus,
portNo,
actorSysPriority,
actorSysMac,
actorPortPriority,
actorPortNum,
actorKey,
partnerSysPriority,
partnerSysMac,
partnerPortPriority,
partnerPortNum,
partnerKey
);
}
}
static class Builder implements OFBsnLacpConvergenceNotif.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean convergenceStatusSet;
private short convergenceStatus;
private boolean portNoSet;
private OFPort portNo;
private boolean actorSysPrioritySet;
private int actorSysPriority;
private boolean actorSysMacSet;
private MacAddress actorSysMac;
private boolean actorPortPrioritySet;
private int actorPortPriority;
private boolean actorPortNumSet;
private int actorPortNum;
private boolean actorKeySet;
private int actorKey;
private boolean partnerSysPrioritySet;
private int partnerSysPriority;
private boolean partnerSysMacSet;
private MacAddress partnerSysMac;
private boolean partnerPortPrioritySet;
private int partnerPortPriority;
private boolean partnerPortNumSet;
private int partnerPortNum;
private boolean partnerKeySet;
private int partnerKey;
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnMirrorVer10.java | 390 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnMirrorVer11.java | 390 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnMirrorVer12.java | 390 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnMirrorVer13.java | 390 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnMirrorVer14.java | 390 |
OFActionBsnMirrorVer10 other = (OFActionBsnMirrorVer10) obj;
if (destPort == null) {
if (other.destPort != null)
return false;
} else if (!destPort.equals(other.destPort))
return false;
if( vlanTag != other.vlanTag)
return false;
if( copyStage != other.copyStage)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((destPort == null) ? 0 : destPort.hashCode());
result = prime * (int) (vlanTag ^ (vlanTag >>> 32));
result = prime * result + copyStage;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 393 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 393 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 393 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 393 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 393 |
OFBsnPduRxTimeoutVer10 other = (OFBsnPduRxTimeoutVer10) obj;
if( xid != other.xid)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( slotNum != other.slotNum)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + slotNum;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 348 |
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 348 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 348 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 348 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 348 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 348 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 348 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 348 |
OFGetConfigReplyVer10 other = (OFGetConfigReplyVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if( missSendLen != other.missSendLen)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + missSendLen;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloVer10.java | 93 |
| org/projectfloodlight/openflow/protocol/ver10/OFHelloVer10.java | 142 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property elements not supported in version 1.0");
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property elements not supported in version 1.0");
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 105 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 111 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 111 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 111 |
}
// Accessors for OF message fields
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public MacAddress getHwAddr() {
return hwAddr;
}
@Override
public String getName() {
return name;
}
@Override
public Set<OFPortConfig> getConfig() {
return config;
}
@Override
public Set<OFPortState> getState() {
return state;
}
@Override
public Set<OFPortFeatures> getCurr() {
return curr;
}
@Override
public Set<OFPortFeatures> getAdvertised() {
return advertised;
}
@Override
public Set<OFPortFeatures> getSupported() {
return supported;
}
@Override
public Set<OFPortFeatures> getPeer() {
return peer;
}
@Override
public long getCurrSpeed()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 507 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 502 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 502 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 548 |
} else if (!txErrors.equals(other.txErrors))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * (int) (queueId ^ (queueId >>> 32));
result = prime * result + ((txBytes == null) ? 0 : txBytes.hashCode());
result = prime * result + ((txPackets == null) ? 0 : txPackets.hashCode());
result = prime * result + ((txErrors == null) ? 0 : txErrors.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 605 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 605 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 627 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 641 |
U64 cookie = this.cookieSet ? this.cookie : DEFAULT_COOKIE;
if(cookie == null)
throw new NullPointerException("Property cookie must not be null");
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
List<OFInstruction> instructions = this.instructionsSet ? this.instructions : DEFAULT_INSTRUCTIONS;
if(instructions == null)
throw new NullPointerException("Property instructions must not be null");
return new OFFlowStatsEntryVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 108 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 179 |
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 179 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 108 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 108 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 108 |
@Override
public OFGroupType getGroupType() {
return groupType;
}
@Override
public OFGroupDescStatsEntry.Builder setGroupType(OFGroupType groupType) {
this.groupType = groupType;
this.groupTypeSet = true;
return this;
}
@Override
public OFGroup getGroup() {
return group;
}
@Override
public OFGroupDescStatsEntry.Builder setGroup(OFGroup group) {
this.group = group;
this.groupSet = true;
return this;
}
@Override
public List<OFBucket> getBuckets() {
return buckets;
}
@Override
public OFGroupDescStatsEntry.Builder setBuckets(List<OFBucket> buckets) {
this.buckets = buckets;
this.bucketsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFHelloVer11.java | 93 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloVer11.java | 142 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property elements not supported in version 1.1");
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property elements not supported in version 1.1");
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFErrorTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 30 |
public class OFErrorTypeSerializerVer12 {
public final static short HELLO_FAILED_VAL = (short) 0x0;
public final static short BAD_REQUEST_VAL = (short) 0x1;
public final static short BAD_ACTION_VAL = (short) 0x2;
public final static short BAD_INSTRUCTION_VAL = (short) 0x3;
public final static short BAD_MATCH_VAL = (short) 0x4;
public final static short FLOW_MOD_FAILED_VAL = (short) 0x5;
public final static short GROUP_MOD_FAILED_VAL = (short) 0x6;
public final static short PORT_MOD_FAILED_VAL = (short) 0x7;
public final static short TABLE_MOD_FAILED_VAL = (short) 0x8;
public final static short QUEUE_OP_FAILED_VAL = (short) 0x9;
public final static short SWITCH_CONFIG_FAILED_VAL = (short) 0xa;
public final static short ROLE_REQUEST_FAILED_VAL = (short) 0xb;
public final static short EXPERIMENTER_VAL = (short) 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFHelloVer12.java | 93 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloVer12.java | 142 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property elements not supported in version 1.2");
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property elements not supported in version 1.2");
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 110 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 179 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 110 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 110 |
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFPacketQueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFPacketQueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public List<OFQueueProp> getProperties() {
return properties;
}
@Override
public OFPacketQueue.Builder setProperties(List<OFQueueProp> properties) {
this.properties = properties;
this.propertiesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnArpIdleVer13.java | 398 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnArpIdleVer14.java | 398 |
OFBsnArpIdleVer13 other = (OFBsnArpIdleVer13) obj;
if( xid != other.xid)
return false;
if( vlanVid != other.vlanVid)
return false;
if (ipv4Addr == null) {
if (other.ipv4Addr != null)
return false;
} else if (!ipv4Addr.equals(other.ipv4Addr))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + vlanVid;
result = prime * result + ((ipv4Addr == null) ? 0 : ipv4Addr.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 422 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 422 |
OFBsnVlanCounterStatsRequestVer13 other = (OFBsnVlanCounterStatsRequestVer13) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if( vlanVid != other.vlanVid)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + vlanVid;
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 174 |
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterConfig.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfig.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfig.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 107 |
@Override
public int getFlags() {
return flags;
}
@Override
public OFMeterConfig.Builder setFlags(int flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public long getMeterId() {
return meterId;
}
@Override
public OFMeterConfig.Builder setMeterId(long meterId) {
this.meterId = meterId;
this.meterIdSet = true;
return this;
}
@Override
public List<OFMeterBand> getEntries() {
return entries;
}
@Override
public OFMeterConfig.Builder setEntries(List<OFMeterBand> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 323 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 323 |
OFMeterConfigVer13 other = (OFMeterConfigVer13) obj;
if( flags != other.flags)
return false;
if( meterId != other.meterId)
return false;
if (entries == null) {
if (other.entries != null)
return false;
} else if (!entries.equals(other.entries))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + flags;
result = prime * (int) (meterId ^ (meterId >>> 32));
result = prime * result + ((entries == null) ? 0 : entries.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBadRequestCodeSerializerVer10.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFBadRequestCodeSerializerVer11.java | 43 |
| org/projectfloodlight/openflow/protocol/ver12/OFBadRequestCodeSerializerVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadRequestCodeSerializerVer13.java | 47 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadRequestCodeSerializerVer14.java | 49 |
public static OFBadRequestCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBadRequestCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBadRequestCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBadRequestCode ofWireValue(short val) {
switch(val) {
case BAD_VERSION_VAL:
return OFBadRequestCode.BAD_VERSION;
case BAD_TYPE_VAL:
return OFBadRequestCode.BAD_TYPE;
case BAD_STAT_VAL:
return OFBadRequestCode.BAD_STAT;
case BAD_EXPERIMENTER_VAL:
return OFBadRequestCode.BAD_EXPERIMENTER;
case BAD_SUBTYPE_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 328 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 328 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 328 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 328 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 328 |
throw new OFParseError("Wrong length: Expected=23(23), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x22L
int subtype = bb.readInt();
if(subtype != 0x22)
throw new OFParseError("Wrong subtype: Expected=0x22L(0x22L), got="+subtype);
long status = U32.f(bb.readInt());
OFPort portNo = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 328 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 328 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 328 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 328 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 328 |
throw new OFParseError("Wrong length: Expected=23(23), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x20L
int subtype = bb.readInt();
if(subtype != 0x20)
throw new OFParseError("Wrong subtype: Expected=0x20L(0x20L), got="+subtype);
long status = U32.f(bb.readInt());
OFPort portNo = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 109 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 171 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 109 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 282 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.FLOW(1), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 285 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 282 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 4
short statsType = bb.readShort();
if(statsType != (short) 0x4)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.PORT(4), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 282 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 5
short statsType = bb.readShort();
if(statsType != (short) 0x5)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.QUEUE(5), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 724 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 845 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 977 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 645 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 645 |
if( maxEntries != other.maxEntries)
return false;
if( activeCount != other.activeCount)
return false;
if (lookupCount == null) {
if (other.lookupCount != null)
return false;
} else if (!lookupCount.equals(other.lookupCount))
return false;
if (matchedCount == null) {
if (other.matchedCount != null)
return false;
} else if (!matchedCount.equals(other.matchedCount))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 282 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 3
short statsType = bb.readShort();
if(statsType != (short) 0x3)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.TABLE(3), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 109 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 171 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 109 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFTableStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.TABLE;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFTableStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFTableStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 109 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFGroupDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionExperimenterVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionExperimenterVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionExperimenterVer14.java | 34 |
public final static OFInstructionExperimenterVer11.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFInstructionExperimenter> {
@Override
public OFInstructionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 109 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.GROUP_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFGroupFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFGroupFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 112 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 179 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public long getTableId() {
return tableId;
}
@Override
public OFActionBsnGentable.Builder setTableId(long tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFActionBsnGentable.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 112 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public long getTableId() {
return tableId;
}
@Override
public OFActionBsnGentable.Builder setTableId(long tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFActionBsnGentable.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 254 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 254 |
public void write(ChannelBuffer bb, OFBsnGentableEntryStatsEntryVer13 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// keyLength is length indicator for key, will be
// udpated when key has been written
int keyLengthIndex = bb.writerIndex();
bb.writeShort(0);
int keyStartIndex = bb.writerIndex();
ChannelUtils.writeList(bb, message.key);
// update field length member keyLength
int keyLength = bb.writerIndex() - keyStartIndex;
bb.setShort(keyLengthIndex, keyLength);
ChannelUtils.writeList(bb, message.stats);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnGentableEntryStatsEntryVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 940 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 783 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 801 |
StringBuilder b = new StringBuilder("OFCalientFlowStatsEntryVer13(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("cookie=").append(cookie); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFMeterFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.METER_FEATURES;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFMeterFeaturesStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFMeterFeaturesStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 171 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
@Override
public OFPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 109 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFPortDescStatsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.PORT_DESC;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public OFPortDescStatsRequest.Builder setFlags(Set<OFStatsRequestFlags> flags) {
this.flags = flags;
this.flagsSet = true;
return this;
}
//
@Override
public OFPortDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionOutputVer10.java | 142 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionOutputVer11.java | 142 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionOutputVer12.java | 142 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionOutputVer13.java | 142 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionOutputVer14.java | 142 |
return new OFActionOutputVer10(
port,
maxLen
);
}
}
static class Builder implements OFActionOutput.Builder {
// OF message fields
private boolean portSet;
private OFPort port;
private boolean maxLenSet;
private int maxLen;
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 261 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 462 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 271 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 480 |
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property hardTimeout not supported in version 1.0"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 533 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 543 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 543 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 543 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 554 |
if( advertise != other.advertise)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * (int) (config ^ (config >>> 32));
result = prime * (int) (mask ^ (mask >>> 32));
result = prime * (int) (advertise ^ (advertise >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 157 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 157 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedReasonSerializerVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedReasonSerializerVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedReasonSerializerVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedReasonSerializerVer14.java | 39 |
public static OFFlowRemovedReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowRemovedReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFFlowRemovedReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFFlowRemovedReason ofWireValue(byte val) {
switch(val) {
case IDLE_TIMEOUT_VAL:
return OFFlowRemovedReason.IDLE_TIMEOUT;
case HARD_TIMEOUT_VAL:
return OFFlowRemovedReason.HARD_TIMEOUT;
case DELETE_VAL:
return OFFlowRemovedReason.DELETE;
case GROUP_DELETE_VAL:
return OFFlowRemovedReason.GROUP_DELETE; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 440 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 440 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsEntryVer11.java | 340 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 440 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 440 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 440 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsEntryVer12.java | 340 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 440 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 440 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 440 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsEntryVer13.java | 340 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 440 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 440 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 440 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsEntryVer14.java | 340 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 440 |
if (groupType == null) {
if (other.groupType != null)
return false;
} else if (!groupType.equals(other.groupType))
return false;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
if (buckets == null) {
if (other.buckets != null)
return false;
} else if (!buckets.equals(other.buckets))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteMetadataVer11.java | 147 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteMetadataVer12.java | 147 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteMetadataVer13.java | 147 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteMetadataVer14.java | 147 |
return new OFInstructionWriteMetadataVer11(
metadata,
metadataMask
);
}
}
static class Builder implements OFInstructionWriteMetadata.Builder {
// OF message fields
private boolean metadataSet;
private U64 metadata;
private boolean metadataMaskSet;
private U64 metadataMask;
@Override
public OFInstructionType getType() {
return OFInstructionType.WRITE_METADATA;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedCodeSerializerVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedCodeSerializerVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedCodeSerializerVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedCodeSerializerVer14.java | 38 |
public static OFPortModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPortModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFPortModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFPortModFailedCode ofWireValue(short val) {
switch(val) {
case BAD_PORT_VAL:
return OFPortModFailedCode.BAD_PORT;
case BAD_HW_ADDR_VAL:
return OFPortModFailedCode.BAD_HW_ADDR;
case BAD_CONFIG_VAL:
return OFPortModFailedCode.BAD_CONFIG;
case BAD_ADVERTISE_VAL:
return OFPortModFailedCode.BAD_ADVERTISE; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableConfigSerializerVer11.java | 39 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableConfigSerializerVer12.java | 39 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableConfigSerializerVer13.java | 36 |
public final static int TABLE_MISS_MASK_VAL = 0x3;
public static Set<OFTableConfig> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFTableConfig> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFTableConfig> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFTableConfig> ofWireValue(int val) {
EnumSet<OFTableConfig> set = EnumSet.noneOf(OFTableConfig.class);
if((val & TABLE_MISS_MASK_VAL) == TABLE_MISS_CONTROLLER_VAL) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 683 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 683 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 683 |
OFStatsReplyFlagsSerializerVer12.putTo(message.flags, sink);
// skip pad (4 bytes)
sink.putLong(message.types);
sink.putLong(message.capabilities);
sink.putLong(message.maxGroupsAll);
sink.putLong(message.maxGroupsSelect);
sink.putLong(message.maxGroupsIndirect);
sink.putLong(message.maxGroupsFf);
sink.putLong(message.actionsAll);
sink.putLong(message.actionsSelect);
sink.putLong(message.actionsIndirect);
sink.putLong(message.actionsFf);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFGroupFeaturesStatsReplyVer12> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 627 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 655 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 655 |
OFPacketInVer12 other = (OFPacketInVer12) obj;
if( xid != other.xid)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if( totalLen != other.totalLen)
return false;
if (reason == null) {
if (other.reason != null)
return false;
} else if (!reason.equals(other.reason))
return false;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if (match == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 79 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public String getName() {
return name;
}
@Override
public List<OFBsnTlv> getTlvs() {
return tlvs;
}
public OFBsnGenericStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGenericStatsRequest.Builder {
final OFBsnGenericStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 524 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 349 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 524 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 349 |
if (checksum == null) {
if (other.checksum != null)
return false;
} else if (!checksum.equals(other.checksum))
return false;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
if (value == null) {
if (other.value != null)
return false;
} else if (!value.equals(other.value))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsEntryVer13.java | 505 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 674 |
if( state != other.state)
return false;
if (properties == null) {
if (other.properties != null)
return false;
} else if (!properties.equals(other.properties))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((portNo == null) ? 0 : portNo.hashCode());
result = prime * result + ((hwAddr == null) ? 0 : hwAddr.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * (int) (config ^ (config >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 102 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 159 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements() {
return elements;
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) {
this.elements = elements;
this.elementsSet = true;
return this;
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 102 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 159 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements() {
return elements;
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) {
this.elements = elements;
this.elementsSet = true;
return this;
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXSwitch.java | 39 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXSwitch.java | 40 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXSwitch.java | 40 |
Logger log = LogManager.getLogger(RemoveOVXSwitch.class.getName());
@Override
public JSONRPC2Response process(final Map<String, Object> params) {
JSONRPC2Response resp = null;
try {
final Number tenantId = HandlerUtils.<Number>fetchField(
TenantHandler.TENANT, params, true, null);
final Number dpid = HandlerUtils.<Number>fetchField(
TenantHandler.VDPID, params, true, null);
HandlerUtils.isValidTenantId(tenantId.intValue());
HandlerUtils
.isValidOVXSwitch(tenantId.intValue(), dpid.longValue());
final OVXMap map = OVXMap.getInstance();
final OVXNetwork virtualNetwork = map.getVirtualNetwork(tenantId
.intValue());
virtualNetwork.removeSwitch(dpid.longValue()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortFeaturesSerializerVer10.java | 92 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortFeaturesSerializerVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortFeaturesSerializerVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortFeaturesSerializerVer13.java | 107 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortFeaturesSerializerVer14.java | 107 |
set.add(OFPortFeatures.PF_PAUSE_ASYM);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortFeatures> set) {
int wireValue = 0;
for(OFPortFeatures e: set) {
switch(e) {
case PF_10MB_HD:
wireValue |= PF_10MB_HD_VAL;
break;
case PF_10MB_FD:
wireValue |= PF_10MB_FD_VAL;
break;
case PF_100MB_HD:
wireValue |= PF_100MB_HD_VAL;
break;
case PF_100MB_FD:
wireValue |= PF_100MB_FD_VAL;
break;
case PF_1GB_HD:
wireValue |= PF_1GB_HD_VAL;
break;
case PF_1GB_FD:
wireValue |= PF_1GB_FD_VAL;
break;
case PF_10GB_FD:
wireValue |= PF_10GB_FD_VAL;
break;
case PF_COPPER:
wireValue |= PF_COPPER_VAL;
break;
case PF_FIBER:
wireValue |= PF_FIBER_VAL;
break;
case PF_AUTONEG:
wireValue |= PF_AUTONEG_VAL;
break;
case PF_PAUSE:
wireValue |= PF_PAUSE_VAL;
break;
case PF_PAUSE_ASYM:
wireValue |= PF_PAUSE_ASYM_VAL;
break; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 689 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 797 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 909 |
b.append("wildcards=").append(wildcards);
b.append(", ");
b.append("maxEntries=").append(maxEntries);
b.append(", ");
b.append("activeCount=").append(activeCount);
b.append(", ");
b.append("lookupCount=").append(lookupCount);
b.append(", ");
b.append("matchedCount=").append(matchedCount);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 343 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 343 |
}
//
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : DEFAULT_GROUP_ID;
if(group == null)
throw new NullPointerException("Property group must not be null");
long refCount = this.refCountSet ? this.refCount : DEFAULT_REF_COUNT;
U64 packetCount = this.packetCountSet ? this.packetCount : DEFAULT_PACKET_COUNT;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : DEFAULT_BYTE_COUNT;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null");
List<OFBucketCounter> bucketStats = this.bucketStatsSet ? this.bucketStats : DEFAULT_BUCKET_STATS;
if(bucketStats == null)
throw new NullPointerException("Property bucketStats must not be null");
return new OFGroupStatsEntryVer11( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 204 |
| net/onrc/openvirtex/messages/actions/ver10/OVXActionOutputVer10.java | 280 |
}
} else {
/*
* If inPort is edge and outPort is link:
* - retrieve link
* - generate the link's FMs
* - add actions to current FM to write packet fields
* related to the link
*/
final OVXLink link = outPort.getLink().getOutLink();
linkId = link.getLinkId();
try {
flowId = vnet.getFlowManager().storeFlowValues(
match.getEthSrc().getBytes(),
match.getEthDst().getBytes());
link.generateLinkFMs(fm.clone(), flowId);
approvedActions.addAll(new OVXLinkUtils(sw
.getTenantId(), linkId, flowId)
.setLinkFields());
} catch (IndexOutOfBoundException e) {
log.error(
"Too many host to generate the flow pairs in this virtual network {}. "
+ "Dropping flow-mod {} ",
sw.getTenantId(), fm);
throw new DroppedMessageException();
}
}
} else { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionStripVlanVer10.java | 78 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionCopyTtlInVer11.java | 78 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionCopyTtlOutVer11.java | 78 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionDecMplsTtlVer11.java | 78 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionDecNwTtlVer11.java | 78 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionPopVlanVer11.java | 78 |
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionClearActionsVer11.java | 78 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionCopyTtlInVer12.java | 78 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionCopyTtlOutVer12.java | 78 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionDecMplsTtlVer12.java | 78 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionDecNwTtlVer12.java | 78 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionPopVlanVer12.java | 78 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionClearActionsVer12.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionCopyTtlInVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionCopyTtlOutVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionDecMplsTtlVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionDecNwTtlVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionPopPbbVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionPopVlanVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionClearActionsVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionCopyTtlInVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionCopyTtlOutVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionDecMplsTtlVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionDecNwTtlVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPopPbbVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionPopVlanVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionClearActionsVer14.java | 78 |
throw new OFParseError("Wrong type: Expected=OFActionType.STRIP_VLAN(3), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionStripVlanVer10Funnel FUNNEL = new OFActionStripVlanVer10Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 735 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 735 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 735 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 735 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 735 |
message.loopbackPortNo.write2Bytes(bb);
message.localMac.write6Bytes(bb);
message.nhMac.write6Bytes(bb);
message.srcIp.write4Bytes(bb);
message.dstIp.write4Bytes(bb);
bb.writeByte(U8.t(message.dscp));
bb.writeByte(U8.t(message.ttl));
// pad: 2 bytes
bb.writeZero(2);
bb.writeInt(U32.t(message.vpn));
bb.writeInt(U32.t(message.rateLimit));
ChannelUtils.writeFixedLengthString(bb, message.ifName, 16);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnVportL2GreVer10("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 62 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 62 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 62 |
throw new NullPointerException("OFBsnVportQInQVer10: property ifName cannot be null");
}
this.portNo = portNo;
this.ingressTpid = ingressTpid;
this.ingressVlanId = ingressVlanId;
this.egressTpid = egressTpid;
this.egressVlanId = egressVlanId;
this.ifName = ifName;
}
// Accessors for OF message fields
@Override
public int getType() {
return 0x0;
}
@Override
public long getPortNo() {
return portNo;
}
@Override
public int getIngressTpid() {
return ingressTpid;
}
@Override
public int getIngressVlanId() {
return ingressVlanId;
}
@Override
public int getEgressTpid() {
return egressTpid;
}
@Override
public int getEgressVlanId() {
return egressVlanId;
}
@Override
public String getIfName() {
return ifName;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 101 |
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 101 |
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 102 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 102 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 102 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 109 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 112 |
}
// Accessors for OF message fields
@Override
public TableId getTableId() {
return tableId;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public int getPriority() {
return priority;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 101 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 101 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModVer11.java | 45 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModVer12.java | 45 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModVer13.java | 45 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModVer14.java | 45 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
U64.ofRaw(bb.readLong());
U64.ofRaw(bb.readLong());
TableId.readByte(bb);
short command = bb.readByte();
bb.readerIndex(start);
switch(command) {
case (short) 0x0:
// discriminator value OFFlowModCommand.ADD=0 for class OFFlowAddVer11
return OFFlowAddVer11.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 477 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 477 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 477 |
bb.writeByte((byte) 0x2);
// fixed value property type = 16
bb.writeByte((byte) 0x10);
// fixed value property length = 40
bb.writeShort((short) 0x28);
bb.writeInt(U32.t(message.xid));
message.portNo.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
message.hwAddr.write6Bytes(bb);
// pad: 2 bytes
bb.writeZero(2);
bb.writeInt(U32.t(message.config));
bb.writeInt(U32.t(message.mask));
bb.writeInt(U32.t(message.advertise));
// pad: 4 bytes
bb.writeZero(4);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFPortModVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableConfigSerializerVer11.java | 41 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableConfigSerializerVer12.java | 41 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableConfigSerializerVer14.java | 40 |
public static Set<OFTableConfig> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFTableConfig> set) {
bb.writeInt(toWireValue(set));
}
public static void putTo(Set<OFTableConfig> set, PrimitiveSink sink) {
sink.putInt(toWireValue(set));
}
public static Set<OFTableConfig> ofWireValue(int val) {
EnumSet<OFTableConfig> set = EnumSet.noneOf(OFTableConfig.class);
if((val & TABLE_MISS_MASK_VAL) == TABLE_MISS_CONTROLLER_VAL) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 101 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 101 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 373 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 373 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 373 |
return new OFGroupFeaturesStatsReplyVer12(
xid,
flags,
types,
capabilities,
maxGroupsAll,
maxGroupsSelect,
maxGroupsIndirect,
maxGroupsFf,
actionsAll,
actionsSelect,
actionsIndirect,
actionsFf
);
}
}
static class Builder implements OFGroupFeaturesStatsReply.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean flagsSet;
private Set<OFStatsReplyFlags> flags;
private boolean typesSet;
private long types;
private boolean capabilitiesSet;
private long capabilities;
private boolean maxGroupsAllSet;
private long maxGroupsAll;
private boolean maxGroupsSelectSet;
private long maxGroupsSelect;
private boolean maxGroupsIndirectSet;
private long maxGroupsIndirect;
private boolean maxGroupsFfSet;
private long maxGroupsFf;
private boolean actionsAllSet;
private long actionsAll;
private boolean actionsSelectSet;
private long actionsSelect;
private boolean actionsIndirectSet;
private long actionsIndirect;
private boolean actionsFfSet;
private long actionsFf;
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionCircuitVer13.java | 221 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdCircuitVer13.java | 96 |
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x748771L
int experimenter = bb.readInt();
if(experimenter != 0x748771)
throw new OFParseError("Wrong experimenter: Expected=0x748771L(0x748771L), got="+experimenter);
// fixed value property subtype == 0x19
short subtype = bb.readShort();
if(subtype != (short) 0x19)
throw new OFParseError("Wrong subtype: Expected=0x19(0x19), got="+subtype);
// fixed value property hlength == 0x10
short hlength = bb.readShort();
if(hlength != (short) 0x10)
throw new OFParseError("Wrong hlength: Expected=0x10(0x10), got="+hlength); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 79 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2eL;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public List<OFBsnTlv> getValue() {
return value;
}
public OFBsnGentableEntryAdd.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableEntryAdd.Builder {
final OFBsnGentableEntryAddVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 438 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 438 |
StringBuilder b = new StringBuilder("OFBsnLuaUploadVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("filename=").append(filename);
b.append(", ");
b.append("data=").append(Arrays.toString(data));
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 102 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 159 |
@Override
public int getType() {
return 0x3b;
}
@Override
public int getTableId() {
return tableId;
}
@Override
public OFBsnTlvReference.Builder setTableId(int tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnTlvReference.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnTlvReference build() {
int tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 101 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 101 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 137 |
return new OFMeterBandDropVer13(
rate,
burstSize
);
}
}
static class Builder implements OFMeterBandDrop.Builder {
// OF message fields
private boolean rateSet;
private long rate;
private boolean burstSizeSet;
private long burstSize;
@Override
public int getType() {
return 0x1;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDrop.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDrop.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 298 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 492 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 298 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 492 |
throw new UnsupportedOperationException("Property maxEntries not supported in version 1.3");
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetReplyVer14.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetRequestVer14.java | 359 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncSetVer14.java | 359 |
throw new OFParseError("Wrong type: Expected=OFType.GET_ASYNC_REPLY(27), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
List<OFAsyncConfigProp> properties = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFAsyncConfigPropVer14.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 102 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 159 |
@Override
public int getType() {
return 0x3b;
}
@Override
public int getTableId() {
return tableId;
}
@Override
public OFBsnTlvReference.Builder setTableId(int tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnTlvReference.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnTlvReference build() {
int tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 101 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 101 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 158 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropOpticalVer14.java | 469 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropOpticalVer14.java | 545 |
public OFPortDescPropOptical readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 44)
throw new OFParseError("Wrong length: Expected=44(44), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
long supported = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDhcpOffloadVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDhcpOffloadVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2)
throw new OFParseError("Wrong subtype: Expected=0x2L(0x2L), got="+subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 505 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 505 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 505 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.FLOW(1), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 254 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 254 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 254 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 254 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 254 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 8
byte type = bb.readByte();
if(type != (byte) 0x8)
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REPLY(8), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 232 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 232 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 232 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 232 |
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
long config = this.configSet ? this.config : parentMessage.config;
long mask = this.maskSet ? this.mask : parentMessage.mask;
long advertise = this.advertiseSet ? this.advertise : parentMessage.advertise;
//
return new OFPortModVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 254 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 254 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 254 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 254 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 254 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 9
byte type = bb.readByte();
if(type != (byte) 0x9)
throw new OFParseError("Wrong type: Expected=OFType.SET_CONFIG(9), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer10.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 323 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 537 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 356 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 602 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 396 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 674 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 299 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 493 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 299 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 493 |
}
@Override
public long getActiveCount() {
return activeCount;
}
@Override
public OFTableStatsEntry.Builder setActiveCount(long activeCount) {
this.activeCount = activeCount;
this.activeCountSet = true;
return this;
}
@Override
public U64 getLookupCount() {
return lookupCount;
}
@Override
public OFTableStatsEntry.Builder setLookupCount(U64 lookupCount) {
this.lookupCount = lookupCount;
this.lookupCountSet = true;
return this;
}
@Override
public U64 getMatchedCount() {
return matchedCount;
}
@Override
public OFTableStatsEntry.Builder setMatchedCount(U64 matchedCount) {
this.matchedCount = matchedCount;
this.matchedCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 357 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 350 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 521 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 350 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 357 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 312 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 77 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 77 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xeL;
}
@Override
public String getImageChecksum() {
return imageChecksum;
}
@Override
public String getStartupConfigChecksum() {
return startupConfigChecksum;
}
public OFBsnImageDescStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnImageDescStatsReply.Builder {
final OFBsnImageDescStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 984 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 819 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 839 |
OFCalientFlowStatsEntryVer13 other = (OFCalientFlowStatsEntryVer13) obj;
if (tableId == null) {
if (other.tableId != null)
return false;
} else if (!tableId.equals(other.tableId))
return false;
if( durationSec != other.durationSec)
return false;
if( durationNsec != other.durationNsec)
return false;
if( priority != other.priority)
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
if (cookie == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 611 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 624 |
}
//
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloElemVersionbitmapVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsMissVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloElemVersionbitmapVer14.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsMissVer14.java | 174 |
public OFHelloElemVersionbitmap readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> bitmaps = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesFailedCodeSerializerVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesFailedCodeSerializerVer14.java | 34 |
public final static short EPERM_VAL = (short) 0x5;
public static OFTableFeaturesFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFTableFeaturesFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFTableFeaturesFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFTableFeaturesFailedCode ofWireValue(short val) {
switch(val) {
case BAD_TABLE_VAL:
return OFTableFeaturesFailedCode.BAD_TABLE;
case BAD_METADATA_VAL:
return OFTableFeaturesFailedCode.BAD_METADATA;
case BAD_TYPE_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 282 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(19), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
//System.out.println("Buffer doesnt have all data..but continue");
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 12
short statsType = bb.readShort();
if(statsType != (short) 0xc)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.TABLE_FEATURES(12), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/link/OVXLink.java | 288 |
| net/onrc/openvirtex/elements/link/OVXLink.java | 296 |
if (fe.getCommand().equals(OFFlowModCommand.ADD))
{
OVXFlowAdd fm = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(fe.getXid(), fe.getMatch(), U64.of(((OVXFlowTable) this.getSrcPort()
.getParentSwitch().getFlowTable())
.getCookie(fe, true)), fe.getIdleTimeout(), fe.getHardTimeout(), fe.getPriority(), fe.getBufferId(), fe.getOutPort(), fe.getFlags(), fe.getActions());
this.generateLinkFMs(fm, flowId);
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionExperimenterVer10.java | 34 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionExperimenterVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionExperimenterVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionExperimenterVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionExperimenterVer14.java | 34 |
public final static OFActionExperimenterVer10.Reader READER = new Reader();
static class Reader implements OFMessageReader<OFActionExperimenter> {
@Override
public OFActionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduSlotNumSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduSlotNumSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduSlotNumSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduSlotNumSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduSlotNumSerializerVer14.java | 30 |
public class OFBsnPduSlotNumSerializerVer10 {
public final static byte PDU_SLOT_NUM_ANY_VAL = (byte) 0xff;
public static OFBsnPduSlotNum readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnPduSlotNum e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFBsnPduSlotNum e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFBsnPduSlotNum ofWireValue(byte val) {
switch(val) {
case PDU_SLOT_NUM_ANY_VAL:
return OFBsnPduSlotNum.PDU_SLOT_NUM_ANY;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnPduSlotNum in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQUntaggedSerializerVer10.java | 30 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQUntaggedSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQUntaggedSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQUntaggedSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQUntaggedSerializerVer14.java | 30 |
public class OFBsnVportQInQUntaggedSerializerVer10 {
public final static short BSN_VPORT_Q_IN_Q_UNTAGGED_VAL = (short) 0xffff;
public static OFBsnVportQInQUntagged readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnVportQInQUntagged e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFBsnVportQInQUntagged e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFBsnVportQInQUntagged ofWireValue(short val) {
switch(val) {
case BSN_VPORT_Q_IN_Q_UNTAGGED_VAL:
return OFBsnVportQInQUntagged.BSN_VPORT_Q_IN_Q_UNTAGGED;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnVportQInQUntagged in version 1.0: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 40 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 40 |
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static U64 DEFAULT_RX_PACKETS = U64.ZERO;
private final static U64 DEFAULT_TX_PACKETS = U64.ZERO;
private final static U64 DEFAULT_RX_BYTES = U64.ZERO;
private final static U64 DEFAULT_TX_BYTES = U64.ZERO;
private final static U64 DEFAULT_RX_DROPPED = U64.ZERO;
private final static U64 DEFAULT_TX_DROPPED = U64.ZERO;
private final static U64 DEFAULT_RX_ERRORS = U64.ZERO;
private final static U64 DEFAULT_TX_ERRORS = U64.ZERO;
private final static U64 DEFAULT_RX_FRAME_ERR = U64.ZERO;
private final static U64 DEFAULT_RX_OVER_ERR = U64.ZERO;
private final static U64 DEFAULT_RX_CRC_ERR = U64.ZERO;
private final static U64 DEFAULT_COLLISIONS = U64.ZERO;
// OF message fields
private final OFPort portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 365 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 365 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 365 |
}
//
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : DEFAULT_QUEUE_ID;
U64 txBytes = this.txBytesSet ? this.txBytes : DEFAULT_TX_BYTES;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : DEFAULT_TX_PACKETS;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : DEFAULT_TX_ERRORS;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null");
return new OFQueueStatsEntryVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 157 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 154 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 155 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 157 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 157 |
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout() {
return hardTimeout;
}
@Override
public int getPriority() {
return priority;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup() {
return outGroup;
}
@Override
public Set<OFFlowModFlags> getFlags() {
return flags;
}
@Override
public Match getMatch() {
return match;
}
@Override
public List<OFInstruction> getInstructions() {
return instructions;
}
@Override
public List<OFAction> getActions()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 601 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 601 |
bb.writeShort((short) 0x2);
OFStatsRequestFlagsSerializerVer12.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
message.tableId.writeByte(bb);
// pad: 3 bytes
bb.writeZero(3);
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.match.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 376 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 376 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 376 |
bb.writeByte((byte) 0x3);
// fixed value property type = 1
bb.writeByte((byte) 0x1);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
// fixed value property errType = 65535
bb.writeShort((short) 0xffff);
bb.writeShort(U16.t(message.subtype));
bb.writeInt(U32.t(message.experimenter));
message.data.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFExperimenterErrorMsgVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 601 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 601 |
bb.writeShort((short) 0x2);
OFStatsRequestFlagsSerializerVer13.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
message.tableId.writeByte(bb);
// pad: 3 bytes
bb.writeZero(3);
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.match.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 111 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 182 |
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public String getDescription() {
return description;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setDescription(String description) {
this.description = description;
this.descriptionSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsEntryVer13.java | 182 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsEntryVer14.java | 111 |
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public String getDescription() {
return description;
}
@Override
public OFBsnDebugCounterDescStatsEntry.Builder setDescription(String description) {
this.description = description;
this.descriptionSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 154 |
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getStats() {
return stats;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setStats(List<OFBsnTlv> stats) {
this.stats = stats;
this.statsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnGentableEntryStatsEntry build() {
List<OFBsnTlv> key = this.keySet ? this.key : parentMessage.key; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 172 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getEntryCount() {
return entryCount;
}
@Override
public OFBsnGentableStatsEntry.Builder setEntryCount(long entryCount) {
this.entryCount = entryCount;
this.entryCountSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsEntryVer13.java | 172 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsEntryVer14.java | 103 |
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public OFBsnGentableStatsEntry.Builder setTableId(GenTableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public long getEntryCount() {
return entryCount;
}
@Override
public OFBsnGentableStatsEntry.Builder setEntryCount(long entryCount) {
this.entryCount = entryCount;
this.entryCountSet = true;
return this;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFBsnGentableStatsEntry.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsEntryVer13.java | 139 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsEntryVer14.java | 139 |
return new OFBsnPortCounterStatsEntryVer13(
portNo,
values
);
}
}
static class Builder implements OFBsnPortCounterStatsEntry.Builder {
// OF message fields
private boolean portNoSet;
private OFPort portNo;
private boolean valuesSet;
private List<U64> values;
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnPortCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsEntryVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsEntryVer14.java | 134 |
return new OFBsnVlanCounterStatsEntryVer13(
vlanVid,
values
);
}
}
static class Builder implements OFBsnVlanCounterStatsEntry.Builder {
// OF message fields
private boolean vlanVidSet;
private int vlanVid;
private boolean valuesSet;
private List<U64> values;
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsEntry.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnVlanCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterConstantsSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterConstantsSerializerVer14.java | 30 |
public class OFBsnVrfCounterConstantsSerializerVer13 {
public final static int BSN_VRF_ALL_VAL = (int) 0xffffffff;
public static OFBsnVrfCounterConstants readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readInt());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFBsnVrfCounterConstants e) {
bb.writeInt(toWireValue(e));
}
public static void putTo(OFBsnVrfCounterConstants e, PrimitiveSink sink) {
sink.putInt(toWireValue(e));
}
public static OFBsnVrfCounterConstants ofWireValue(int val) {
switch(val) {
case BSN_VRF_ALL_VAL:
return OFBsnVrfCounterConstants.BSN_VRF_ALL;
default:
throw new IllegalArgumentException("Illegal wire value for type OFBsnVrfCounterConstants in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsEntryVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsEntryVer14.java | 134 |
return new OFBsnVrfCounterStatsEntryVer13(
vrf,
values
);
}
}
static class Builder implements OFBsnVrfCounterStatsEntry.Builder {
// OF message fields
private boolean vrfSet;
private long vrf;
private boolean valuesSet;
private List<U64> values;
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsEntry.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnVrfCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloElemTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloElemTypeSerializerVer14.java | 30 |
public class OFHelloElemTypeSerializerVer13 {
public final static short VERSIONBITMAP_VAL = (short) 0x1;
public static OFHelloElemType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFHelloElemType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFHelloElemType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFHelloElemType ofWireValue(short val) {
switch(val) {
case VERSIONBITMAP_VAL:
return OFHelloElemType.VERSIONBITMAP;
default:
throw new IllegalArgumentException("Illegal wire value for type OFHelloElemType in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 601 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 601 |
bb.writeShort((short) 0x2);
OFStatsRequestFlagsSerializerVer14.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
message.tableId.writeByte(bb);
// pad: 3 bytes
bb.writeZero(3);
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.match.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer14("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 100 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 154 |
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getStats() {
return stats;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setStats(List<OFBsnTlv> stats) {
this.stats = stats;
this.statsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnGentableEntryStatsEntry build() {
List<OFBsnTlv> key = this.keySet ? this.key : parentMessage.key; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 843 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 843 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 843 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 843 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 843 |
sink.putShort((short) 0x0);
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
sink.putInt(message.priority);
message.bufferId.putTo(sink);
message.outPort.putTo(sink);
message.outGroup.putTo(sink);
OFFlowModFlagsSerializerVer14.putTo(message.flags, sink);
sink.putInt(message.importance);
message.match.putTo(sink);
FunnelUtils.putList(message.instructions, sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFFlowAddVer14> { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/ControllerChannelHandler.java | 590 |
| net/onrc/openvirtex/core/io/SwitchChannelHandler.java | 799 |
this.sw.setConnected(false);
}
}
@Override
protected OFMessage sendHandShakeMessage(final OFType type) throws IOException {
// final OFMessage m = BasicFactory.getInstance().getMessage(type);
// m.setXid(this.handshakeTransactionIds--);
OFMessage m=null;
if(type == OFType.HELLO)
{
m=(OFMessage) OVXFactoryInst.myFactory.buildHello().setXid(this.handshakeTransactionIds--).build();
this.channel.write(Collections.singletonList(m));
}
else if(type == OFType.FEATURES_REQUEST)
{
m=(OFMessage) OVXFactoryInst.myFactory.buildFeaturesRequest().setXid(this.handshakeTransactionIds--).build();
this.channel.write(Collections.singletonList(m));
}
return m;
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 289 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 269 |
return (this.flags.contains(OFFlowModFlagsSerializerVer10.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null;
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowModify(this.getXid(),this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(),this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions());
return flowMod;
}
public Map<String, Object> toMap() {
final Map<String, Object> map = new LinkedHashMap<String, Object>(); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteStrictVer13.java | 249 |
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 253 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyStrictVer13.java | 252 |
if (!this.getMatch().isFullyWildcarded(MatchField.IPV4_DST)) {
OFOxmIpv4Dst oxmIpv4Dst = new OFOxmIpv4DstVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_DST).getInt())));
final OVXActionSetField dstAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Dst);
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.flags.contains(OFFlowModFlagsSerializerVer13.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null;
if (OVXFactoryInst.ofversion == 10) {
flowMod = OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(this.getXid(), this.getMatch(), this.getCookie(), this.getIdleTimeout(), this.getHardTimeout(), this.getPriority(), this.getBufferId(), this.getOutPort(), this.getFlags(), this.getActions()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 695 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 694 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 694 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 694 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 694 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 753 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 797 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 793 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 792 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 793 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 791 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 768 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 768 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 14
byte type = bb.readByte();
if(type != (byte) 0xe)
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 405 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 405 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 405 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 413 |
throw new OFParseError("Wrong length: Expected=40(40), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFPort portNo = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
MacAddress hwAddr = MacAddress.read6Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
long config = U32.f(bb.readInt());
long mask = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 382 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 382 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 382 |
return new OFFlowRemovedVer12(
xid,
cookie,
priority,
reason,
tableId,
durationSec,
durationNsec,
idleTimeout,
hardTimeout,
packetCount,
byteCount,
match
);
}
}
static class Builder implements OFFlowRemoved.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean cookieSet;
private U64 cookie;
private boolean prioritySet;
private int priority;
private boolean reasonSet;
private short reason;
private boolean tableIdSet;
private TableId tableId;
private boolean durationSecSet;
private long durationSec;
private boolean durationNsecSet;
private long durationNsec;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean packetCountSet;
private U64 packetCount;
private boolean byteCountSet;
private U64 byteCount;
private boolean matchSet;
private Match match;
@Override
public OFVersion getVersion() {
return OFVersion.OF_12; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 556 |
| org/projectfloodlight/openflow/protocol/ver13/OFHelloElemVersionbitmapVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 558 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsMissVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloElemVersionbitmapVer14.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 556 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsMissVer14.java | 174 |
public OFMatchV3 readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 355 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 355 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 355 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 355 |
public OFBsnGentableEntryDescStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
if(!this.tableIdSet)
throw new IllegalStateException("Property tableId doesn't have default value -- must be set");
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
U128 checksum = this.checksumSet ? this.checksum : DEFAULT_CHECKSUM;
if(checksum == null)
throw new NullPointerException("Property checksum must not be null");
U128 checksumMask = this.checksumMaskSet ? this.checksumMask : DEFAULT_CHECKSUM_MASK;
if(checksumMask == null)
throw new NullPointerException("Property checksumMask must not be null");
return new OFBsnGentableEntryDescStatsRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvCircuitIdVer13.java | 173 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplySetfieldVer13.java | 174 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvCircuitIdVer14.java | 173 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplySetfieldVer14.java | 174 |
public OFBsnTlvCircuitId readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xe
short type = bb.readShort();
if(type != (short) 0xe)
throw new OFParseError("Wrong type: Expected=0xe(0xe), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 496 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 548 |
StringBuilder b = new StringBuilder("OFQueueStatsEntryVer13(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("queueId=").append(queueId);
b.append(", ");
b.append("txBytes=").append(txBytes);
b.append(", ");
b.append("txPackets=").append(txPackets);
b.append(", ");
b.append("txErrors=").append(txErrors);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(")"); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFactoryVer10.java | 311 |
| net/onrc/openvirtex/messages/ver13/OVXFactoryVer13.java | 323 |
}
@Override
public OVXMatch buildOVXMatchV1(int wildcards, OFPort inPort, MacAddress ethSrc, MacAddress ethDst, OFVlanVidMatch vlanVid, VlanPcp vlanPcp, EthType ethType, IpDscp ipDscp, IpProtocol ipProto, IPv4Address ipv4Src, IPv4Address ipv4Dst, TransportPort tcpSrc, TransportPort tcpDst,long cookie,byte[] pktData) {
return (OVXMatch)new OVXMatch(wildcards, inPort, ethDst, ethDst, vlanVid, vlanPcp, ethType, ipDscp, ipProto, ipv4Dst, ipv4Dst, tcpDst, tcpDst,cookie,pktData);
}
@Override
public OVXPortStatsRequest buildOVXPortStatsRequest(long xid, Set<OFStatsRequestFlags> flags,
OFPort portNo) {
return (OVXPortStatsRequest)new OVXPortStatsRequestVer10(xid, flags, portNo); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionEnqueueVer10.java | 100 |
| org/projectfloodlight/openflow/protocol/ver10/OFActionEnqueueVer10.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.ENQUEUE;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionEnqueue.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public long getQueueId() {
return queueId;
}
@Override
public OFActionEnqueue.Builder setQueueId(long queueId) {
this.queueId = queueId;
this.queueIdSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFActionEnqueue build() {
OFPort port = this.portSet ? this.port : parentMessage.port; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionOutputVer10.java | 100 |
| org/projectfloodlight/openflow/protocol/ver10/OFActionOutputVer10.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFActionOutput build() {
OFPort port = this.portSet ? this.port : parentMessage.port; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 399 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 399 |
public OFAggregateStatsRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
Set<OFStatsRequestFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null");
Match match = this.matchSet ? this.match : DEFAULT_MATCH;
if(match == null)
throw new NullPointerException("Property match must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
OFPort outPort = this.outPortSet ? this.outPort : DEFAULT_OUT_PORT;
if(outPort == null)
throw new NullPointerException("Property outPort must not be null");
return new OFAggregateStatsRequestVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 77 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 77 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 77 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 77 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 77 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x21L;
}
@Override
public long getTimeoutMs() {
return timeoutMs;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public byte[] getData() {
return data;
}
public OFBsnPduRxRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnPduRxRequest.Builder {
final OFBsnPduRxRequestVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 77 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 77 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 77 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 77 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 77 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1fL;
}
@Override
public long getTxIntervalMs() {
return txIntervalMs;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public short getSlotNum() {
return slotNum;
}
@Override
public byte[] getData() {
return data;
}
public OFBsnPduTxRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnPduTxRequest.Builder {
final OFBsnPduTxRequestVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFErrorTypeSerializerVer10.java | 39 |
| org/projectfloodlight/openflow/protocol/ver11/OFErrorTypeSerializerVer11.java | 44 |
| org/projectfloodlight/openflow/protocol/ver12/OFErrorTypeSerializerVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 48 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 52 |
public static OFErrorType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFErrorType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFErrorType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFErrorType ofWireValue(short val) {
switch(val) {
case HELLO_FAILED_VAL:
return OFErrorType.HELLO_FAILED;
case BAD_REQUEST_VAL:
return OFErrorType.BAD_REQUEST;
case BAD_ACTION_VAL:
return OFErrorType.BAD_ACTION;
case FLOW_MOD_FAILED_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 100 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 157 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsEntryVer10.java | 365 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 365 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 365 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsEntryVer13.java | 391 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsEntryVer14.java | 410 |
}
//
@Override
public OFQueueStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
long queueId = this.queueIdSet ? this.queueId : DEFAULT_QUEUE_ID;
U64 txBytes = this.txBytesSet ? this.txBytes : DEFAULT_TX_BYTES;
if(txBytes == null)
throw new NullPointerException("Property txBytes must not be null");
U64 txPackets = this.txPacketsSet ? this.txPackets : DEFAULT_TX_PACKETS;
if(txPackets == null)
throw new NullPointerException("Property txPackets must not be null");
U64 txErrors = this.txErrorsSet ? this.txErrors : DEFAULT_TX_ERRORS;
if(txErrors == null)
throw new NullPointerException("Property txErrors must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionOutputVer11.java | 100 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionOutputVer11.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFActionOutput build() {
OFPort port = this.portSet ? this.port : parentMessage.port; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteMetadataVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteMetadataVer11.java | 162 |
@Override
public OFInstructionType getType() {
return OFInstructionType.WRITE_METADATA;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFInstructionWriteMetadata build() {
U64 metadata = this.metadataSet ? this.metadata : parentMessage.metadata; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatusVer11.java | 256 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatusVer12.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatusVer13.java | 256 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 12
byte type = bb.readByte();
if(type != (byte) 0xc)
throw new OFParseError("Wrong type: Expected=OFType.PORT_STATUS(12), got="+type);
int length = U16.f(bb.readShort());
if(length != 80)
throw new OFParseError("Wrong length: Expected=80(80), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFPortReason reason = OFPortReasonSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 100 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 157 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionOutputVer12.java | 100 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionOutputVer12.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFActionOutput build() {
OFPort port = this.portSet ? this.port : parentMessage.port; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 602 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 602 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 602 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 602 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 602 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 602 |
OFStatsRequestFlagsSerializerVer12.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
message.tableId.writeByte(bb);
// pad: 3 bytes
bb.writeZero(3);
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.match.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteMetadataVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteMetadataVer12.java | 162 |
@Override
public OFInstructionType getType() {
return OFInstructionType.WRITE_METADATA;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFInstructionWriteMetadata build() {
U64 metadata = this.metadataSet ? this.metadata : parentMessage.metadata; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 100 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 157 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 256 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 25
byte type = bb.readByte();
if(type != (byte) 0x19)
throw new OFParseError("Wrong type: Expected=OFType.ROLE_REPLY(25), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFControllerRole role = OFControllerRoleSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 260 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 260 |
throw new OFParseError("Wrong type: Expected=OFType.ROLE_REPLY(25), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFControllerRole role = OFControllerRoleSerializerVer12.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
U64 generationId = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 256 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 256 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 256 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_12(3), got="+version);
// fixed value property type == 24
byte type = bb.readByte();
if(type != (byte) 0x18)
throw new OFParseError("Wrong type: Expected=OFType.ROLE_REQUEST(24), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFControllerRole role = OFControllerRoleSerializerVer12.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionOutputVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionOutputVer13.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFActionOutput build() {
OFPort port = this.portSet ? this.port : parentMessage.port; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 497 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 497 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 497 |
bb.writeByte((byte) 0x1b);
// fixed value property length = 32
bb.writeShort((short) 0x20);
bb.writeInt(U32.t(message.xid));
bb.writeInt(U32.t(message.packetInMaskEqualMaster));
bb.writeInt(U32.t(message.packetInMaskSlave));
bb.writeInt(U32.t(message.portStatusMaskEqualMaster));
bb.writeInt(U32.t(message.portStatusMaskSlave));
bb.writeInt(U32.t(message.flowRemovedMaskEqualMaster));
bb.writeInt(U32.t(message.flowRemovedMaskSlave));
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFAsyncGetReplyVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 360 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 309 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 399 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 399 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 524 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 268 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsRequestVer13.java | 313 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 268 |
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsRequestFlags> flags = OFStatsRequestFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 358 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 353 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 315 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 353 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 315 |
throw new OFParseError("Wrong length: Expected=536(536), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff)
throw new OFParseError("Wrong statsType: Expected=OFStatsType.EXPERIMENTER(65535), got="+statsType);
Set<OFStatsReplyFlags> flags = OFStatsReplyFlagsSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteMetadataVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteMetadataVer13.java | 162 |
@Override
public OFInstructionType getType() {
return OFInstructionType.WRITE_METADATA;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFInstructionWriteMetadata build() {
U64 metadata = this.metadataSet ? this.metadata : parentMessage.metadata; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 157 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 260 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 260 |
throw new OFParseError("Wrong type: Expected=OFType.ROLE_REPLY(25), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFControllerRole role = OFControllerRoleSerializerVer13.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
U64 generationId = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFActionOutputVer14.java | 100 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionOutputVer14.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFActionOutput build() {
OFPort port = this.portSet ? this.port : parentMessage.port; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteMetadataVer14.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteMetadataVer14.java | 162 |
@Override
public OFInstructionType getType() {
return OFInstructionType.WRITE_METADATA;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFInstructionWriteMetadata build() {
U64 metadata = this.metadataSet ? this.metadata : parentMessage.metadata; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 260 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 260 |
throw new OFParseError("Wrong type: Expected=OFType.ROLE_REPLY(25), got="+type);
int length = U16.f(bb.readShort());
if(length != 24)
throw new OFParseError("Wrong length: Expected=24(24), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFControllerRole role = OFControllerRoleSerializerVer14.readFrom(bb);
// pad: 4 bytes
bb.skipBytes(4);
U64 generationId = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/OFFlowAdd.java | 30 |
| org/projectfloodlight/openflow/protocol/OFFlowDelete.java | 30 |
| org/projectfloodlight/openflow/protocol/OFFlowDeleteStrict.java | 30 |
| org/projectfloodlight/openflow/protocol/OFFlowModify.java | 30 |
| org/projectfloodlight/openflow/protocol/OFFlowModifyStrict.java | 30 |
public interface OFFlowAdd extends OFObject, OFFlowMod {
OFVersion getVersion();
OFType getType();
long getXid();
U64 getCookie();
U64 getCookieMask() throws UnsupportedOperationException;
TableId getTableId() throws UnsupportedOperationException;
OFFlowModCommand getCommand();
int getIdleTimeout();
int getHardTimeout();
int getPriority();
OFBufferId getBufferId();
OFPort getOutPort();
OFGroup getOutGroup() throws UnsupportedOperationException;
Set<OFFlowModFlags> getFlags();
Match getMatch();
List<OFInstruction> getInstructions() throws UnsupportedOperationException;
List<OFAction> getActions() throws UnsupportedOperationException;
int getImportance() throws UnsupportedOperationException;
void writeTo(ChannelBuffer channelBuffer);
Builder createBuilder();
public interface Builder extends OFFlowMod.Builder { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 351 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 351 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 351 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 351 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 351 |
StringBuilder b = new StringBuilder("OFBsnInterfaceVer10(");
b.append("hwAddr=").append(hwAddr);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("ipv4Addr=").append(ipv4Addr);
b.append(", ");
b.append("ipv4Netmask=").append(ipv4Netmask);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 417 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 417 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 417 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 417 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 417 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 417 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 417 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 417 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 417 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 417 |
StringBuilder b = new StringBuilder("OFBsnPduRxReplyVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("status=").append(status);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("slotNum=").append(slotNum);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 220 |
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 220 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 220 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 220 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 220 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 220 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 220 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 220 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 220 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 220 |
throw new OFParseError("Wrong type: Expected=OFType.ECHO_REPLY(3), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
byte[] data = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedReasonSerializerVer10.java | 36 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedReasonSerializerVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedReasonSerializerVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedReasonSerializerVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedReasonSerializerVer14.java | 39 |
public static OFFlowRemovedReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFFlowRemovedReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFFlowRemovedReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFFlowRemovedReason ofWireValue(byte val) {
switch(val) {
case IDLE_TIMEOUT_VAL:
return OFFlowRemovedReason.IDLE_TIMEOUT;
case HARD_TIMEOUT_VAL:
return OFFlowRemovedReason.HARD_TIMEOUT;
case DELETE_VAL:
return OFFlowRemovedReason.DELETE; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 261 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowRemovedVer10.java | 462 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 276 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 491 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 491 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 491 |
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public OFFlowRemoved.Builder setDurationSec(long durationSec) {
this.durationSec = durationSec;
this.durationSecSet = true;
return this;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public OFFlowRemoved.Builder setDurationNsec(long durationNsec) {
this.durationNsec = durationNsec;
this.durationNsecSet = true;
return this;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public OFFlowRemoved.Builder setIdleTimeout(int idleTimeout) {
this.idleTimeout = idleTimeout;
this.idleTimeoutSet = true;
return this;
}
@Override
public int getHardTimeout()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 880 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 880 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 880 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 389 |
b.append(", ");
b.append("rxFrameErr=").append(rxFrameErr);
b.append(", ");
b.append("rxOverErr=").append(rxOverErr);
b.append(", ");
b.append("rxCrcErr=").append(rxCrcErr);
b.append(", ");
b.append("collisions=").append(collisions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsRequestVer10.java | 407 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsRequestVer11.java | 407 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsRequestVer12.java | 407 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsRequestVer13.java | 407 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsRequestVer14.java | 407 |
StringBuilder b = new StringBuilder("OFQueueStatsRequestVer10(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("queueId=").append(queueId);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFStatsReplyFlagsSerializerVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFStatsReplyFlagsSerializerVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsReplyFlagsSerializerVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsReplyFlagsSerializerVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsReplyFlagsSerializerVer14.java | 38 |
public static Set<OFStatsReplyFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFStatsReplyFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFStatsReplyFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFStatsReplyFlags> ofWireValue(short val) {
EnumSet<OFStatsReplyFlags> set = EnumSet.noneOf(OFStatsReplyFlags.class); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFStatsRequestFlagsSerializerVer10.java | 37 |
| org/projectfloodlight/openflow/protocol/ver11/OFStatsRequestFlagsSerializerVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFStatsRequestFlagsSerializerVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver13/OFStatsRequestFlagsSerializerVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFStatsRequestFlagsSerializerVer14.java | 38 |
public static Set<OFStatsRequestFlags> readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, Set<OFStatsRequestFlags> set) {
bb.writeShort(toWireValue(set));
}
public static void putTo(Set<OFStatsRequestFlags> set, PrimitiveSink sink) {
sink.putShort(toWireValue(set));
}
public static Set<OFStatsRequestFlags> ofWireValue(short val) {
EnumSet<OFStatsRequestFlags> set = EnumSet.noneOf(OFStatsRequestFlags.class); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 366 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 366 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 366 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 366 |
StringBuilder b = new StringBuilder("OFBucketVer11(");
b.append("weight=").append(weight);
b.append(", ");
b.append("watchPort=").append(watchPort);
b.append(", ");
b.append("watchGroup=").append(watchGroup);
b.append(", ");
b.append("actions=").append(actions);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 40 |
final static int MINIMUM_LENGTH = 32;
private final static long DEFAULT_XID = 0x0L;
private final static DatapathId DEFAULT_DATAPATH_ID = DatapathId.NONE;
private final static long DEFAULT_N_BUFFERS = 0x0L;
private final static short DEFAULT_N_TABLES = (short) 0x0;
private final static Set<OFCapabilities> DEFAULT_CAPABILITIES = ImmutableSet.<OFCapabilities>of();
private final static long DEFAULT_RESERVED = 0x0L;
private final static List<OFPortDesc> DEFAULT_PORTS = ImmutableList.<OFPortDesc>of();
// OF message fields
private final long xid;
private final DatapathId datapathId;
private final long nBuffers;
private final short nTables;
private final Set<OFCapabilities> capabilities;
private final long reserved;
private final List<OFPortDesc> ports;
//
// Immutable default instance
final static OFFeaturesReplyVer11 DEFAULT = new OFFeaturesReplyVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 416 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 416 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 416 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 416 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 416 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 416 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 416 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 416 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 416 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 416 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 416 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 416 |
StringBuilder b = new StringBuilder("OFGroupAddVer11(");
b.append("xid=").append(xid);
b.append(", ");
b.append("groupType=").append(groupType);
b.append(", ");
b.append("group=").append(group);
b.append(", ");
b.append("buckets=").append(buckets);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFNiciraHeaderVer11.java | 45 |
| org/projectfloodlight/openflow/protocol/ver12/OFNiciraHeaderVer12.java | 45 |
| org/projectfloodlight/openflow/protocol/ver13/OFNiciraHeaderVer13.java | 45 |
| org/projectfloodlight/openflow/protocol/ver14/OFNiciraHeaderVer14.java | 45 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
default:
throw new OFParseError("Unknown value for discriminator subtype of class OFNiciraHeaderVer11: " + subtype); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFExperimenterErrorMsgVer12.java | 399 |
| org/projectfloodlight/openflow/protocol/ver13/OFExperimenterErrorMsgVer13.java | 399 |
| org/projectfloodlight/openflow/protocol/ver14/OFExperimenterErrorMsgVer14.java | 399 |
StringBuilder b = new StringBuilder("OFExperimenterErrorMsgVer12(");
b.append("xid=").append(xid);
b.append(", ");
b.append("subtype=").append(subtype);
b.append(", ");
b.append("experimenter=").append(experimenter);
b.append(", ");
b.append("data=").append(data);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInReasonSerializerVer12.java | 36 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInReasonSerializerVer13.java | 50 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInReasonSerializerVer14.java | 53 |
public static OFPacketInReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPacketInReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFPacketInReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFPacketInReason ofWireValue(byte val) {
switch(val) {
case NO_MATCH_VAL:
return OFPacketInReason.NO_MATCH;
case ACTION_VAL:
return OFPacketInReason.ACTION;
case INVALID_TTL_VAL:
return OFPacketInReason.INVALID_TTL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 347 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 347 |
StringBuilder b = new StringBuilder("OFBsnControllerConnectionVer13(");
b.append("state=").append(state);
b.append(", ");
b.append("auxiliaryId=").append(auxiliaryId);
b.append(", ");
b.append("role=").append(role);
b.append(", ");
b.append("uri=").append(uri);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 467 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 467 |
StringBuilder b = new StringBuilder("OFBsnGenericStatsRequestVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("tlvs=").append(tlvs);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 418 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 418 |
StringBuilder b = new StringBuilder("OFBsnGentableClearReplyVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("deletedCount=").append(deletedCount);
b.append(", ");
b.append("errorCount=").append(errorCount);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 432 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 432 |
StringBuilder b = new StringBuilder("OFBsnGentableClearRequestVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("checksum=").append(checksum);
b.append(", ");
b.append("checksumMask=").append(checksumMask);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsEntryVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsEntryVer14.java | 348 |
StringBuilder b = new StringBuilder("OFBsnGentableDescStatsEntryVer13(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("name=").append(name);
b.append(", ");
b.append("bucketsSize=").append(bucketsSize);
b.append(", ");
b.append("maxEntries=").append(maxEntries);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsReplyVer13.java | 460 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsReplyVer14.java | 460 |
StringBuilder b = new StringBuilder("OFBsnImageDescStatsReplyVer13(");
b.append("xid=").append(xid);
b.append(", ");
b.append("flags=").append(flags);
b.append(", ");
b.append("imageChecksum=").append(imageChecksum);
b.append(", ");
b.append("startupConfigChecksum=").append(startupConfigChecksum);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 620 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 620 |
StringBuilder b = new StringBuilder("OFTableStatsEntryVer13(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("activeCount=").append(activeCount);
b.append(", ");
b.append("lookupCount=").append(lookupCount);
b.append(", ");
b.append("matchedCount=").append(matchedCount);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/OFAggregateStatsRequest.java | 47 |
| org/projectfloodlight/openflow/protocol/OFFlowStatsRequest.java | 47 |
OFAggregateStatsRequest build();
OFVersion getVersion();
OFType getType();
long getXid();
Builder setXid(long xid);
OFStatsType getStatsType();
Set<OFStatsRequestFlags> getFlags();
Builder setFlags(Set<OFStatsRequestFlags> flags);
TableId getTableId();
Builder setTableId(TableId tableId);
OFPort getOutPort();
Builder setOutPort(OFPort outPort);
OFGroup getOutGroup() throws UnsupportedOperationException;
Builder setOutGroup(OFGroup outGroup) throws UnsupportedOperationException;
U64 getCookie() throws UnsupportedOperationException;
Builder setCookie(U64 cookie) throws UnsupportedOperationException;
U64 getCookieMask() throws UnsupportedOperationException;
Builder setCookieMask(U64 cookieMask) throws UnsupportedOperationException;
Match getMatch();
Builder setMatch(Match match);
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 171 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 171 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 171 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 171 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 171 |
}
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
IPv4Address ipv4Addr = this.ipv4AddrSet ? this.ipv4Addr : parentMessage.ipv4Addr;
if(ipv4Addr == null)
throw new NullPointerException("Property ipv4Addr must not be null");
IPv4Address ipv4Netmask = this.ipv4NetmaskSet ? this.ipv4Netmask : parentMessage.ipv4Netmask;
if(ipv4Netmask == null)
throw new NullPointerException("Property ipv4Netmask must not be null");
//
return new OFBsnInterfaceVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 525 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 357 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 357 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 357 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 357 |
throw new OFParseError("Wrong type: Expected=OFType.PACKET_IN(10), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort inPort = OFPort.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 286 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 296 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 296 |
}
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : parentMessage.bufferId;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
int totalLen = this.totalLenSet ? this.totalLen : parentMessage.totalLen;
OFPacketInReason reason = this.reasonSet ? this.reason : parentMessage.reason;
if(reason == null)
throw new NullPointerException("Property reason must not be null");
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdCopyTtlInVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdCopyTtlOutVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdDecMplsTtlVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdDecNwTtlVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdGroupVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdOutputVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPopMplsVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPopPbbVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPopVlanVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPushMplsVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPushPbbVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdPushVlanVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetFieldVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetMplsTtlVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetNwTtlVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdSetQueueVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIdleNotificationVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvSetLoopbackModeVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvStripMplsL2OnIngressVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvStripMplsL3OnIngressVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvStripVlanOnEgressVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdApplyActionsVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdClearActionsVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdGotoTableVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdMeterVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdWriteActionsVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdWriteMetadataVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdCopyTtlInVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdCopyTtlOutVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdDecMplsTtlVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdDecNwTtlVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdGroupVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdOutputVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPopMplsVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPopPbbVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPopVlanVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPushMplsVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPushPbbVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdPushVlanVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetFieldVer14.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetMplsTtlVer14.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetNwTtlVer14.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdSetQueueVer14.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropExperimenterMasterVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropExperimenterSlaveVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIdleNotificationVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvSetLoopbackModeVer14.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvStripMplsL2OnIngressVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvStripMplsL3OnIngressVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvStripVlanOnEgressVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdApplyActionsVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdClearActionsVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdGotoTableVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdMeterVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdWriteActionsVer14.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdWriteMetadataVer14.java | 78 |
throw new OFParseError("Wrong type: Expected=OFActionType.COPY_TTL_IN(12), got="+type);
int length = U16.f(bb.readShort());
if(length != 4)
throw new OFParseError("Wrong length: Expected=4(4), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
if(logger.isTraceEnabled())
logger.trace("readFrom - returning shared instance={}", INSTANCE);
return INSTANCE;
}
}
public void putTo(PrimitiveSink sink) {
FUNNEL.funnel(this, sink);
}
final static OFActionIdCopyTtlInVer13Funnel FUNNEL = new OFActionIdCopyTtlInVer13Funnel(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 165 |
}
@Override
public OFBsnControllerConnection build() {
OFBsnControllerConnectionState state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null");
OFAuxId auxiliaryId = this.auxiliaryIdSet ? this.auxiliaryId : parentMessage.auxiliaryId;
if(auxiliaryId == null)
throw new NullPointerException("Property auxiliaryId must not be null");
OFControllerRole role = this.roleSet ? this.role : parentMessage.role;
if(role == null)
throw new NullPointerException("Property role must not be null");
String uri = this.uriSet ? this.uri : parentMessage.uri;
if(uri == null)
throw new NullPointerException("Property uri must not be null");
//
return new OFBsnControllerConnectionVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 79 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 79 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x28L;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public int getPriority() {
return priority;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public Match getMatch() {
return match;
}
public OFBsnFlowIdle.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnFlowIdle.Builder {
final OFBsnFlowIdleVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvBroadcastQueryTimeoutVer13.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropRequestforwardSlaveVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvBroadcastQueryTimeoutVer14.java | 165 |
public OFBsnTlvBroadcastQueryTimeout readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0xa
short type = bb.readShort();
if(type != (short) 0xa)
throw new OFParseError("Wrong type: Expected=0xa(0xa), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIdleTimeoutVer13.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropTableStatusSlaveVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIdleTimeoutVer14.java | 165 |
public OFBsnTlvIdleTimeout readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x8
short type = bb.readShort();
if(type != (short) 0x8)
throw new OFParseError("Wrong type: Expected=0x8(0x8), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvUnicastQueryTimeoutVer13.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropTableStatusMasterVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvUnicastQueryTimeoutVer14.java | 165 |
public OFBsnTlvUnicastQueryTimeout readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x9
short type = bb.readShort();
if(type != (short) 0x9)
throw new OFParseError("Wrong type: Expected=0x9(0x9), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long value = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 731 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 628 |
public OFCalientFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : DEFAULT_DURATION_SEC;
long durationNsec = this.durationNsecSet ? this.durationNsec : DEFAULT_DURATION_NSEC;
int priority = this.prioritySet ? this.priority : DEFAULT_PRIORITY;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : DEFAULT_IDLE_TIMEOUT;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : DEFAULT_HARD_TIMEOUT;
Set<OFFlowModFlags> flags = this.flagsSet ? this.flags : DEFAULT_FLAGS;
if(flags == null)
throw new NullPointerException("Property flags must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 152 |
@Override
public int getType() {
return 0x1;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDrop.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDrop.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterBandDrop build() {
long rate = this.rateSet ? this.rate : parentMessage.rate; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropPacketInSlaveVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModPropEthernetVer14.java | 165 |
public OFAsyncConfigPropPacketInSlave readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long mask = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 152 |
@Override
public int getType() {
return 0x1;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDrop.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDrop.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterBandDrop build() {
long rate = this.rateSet ? this.rate : parentMessage.rate; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHeaderVer10.java | 46 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnHeaderVer11.java | 46 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnHeaderVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnHeaderVer13.java | 46 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnHeaderVer14.java | 46 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x16:
// discriminator value 0x16L=0x16L for class OFBsnBwClearDataReplyVer10
return OFBsnBwClearDataReplyVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 362 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 362 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 362 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropEthernetVer14.java | 355 |
public OFBsnVportQInQ readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 429 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 429 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 429 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 429 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 429 |
public void write(ChannelBuffer bb, OFBsnVportQInQVer10 message) {
// fixed value property type = 0x0
bb.writeShort((short) 0x0);
// fixed value property length = 32
bb.writeShort((short) 0x20);
bb.writeInt(U32.t(message.portNo));
bb.writeShort(U16.t(message.ingressTpid));
bb.writeShort(U16.t(message.ingressVlanId));
bb.writeShort(U16.t(message.egressTpid));
bb.writeShort(U16.t(message.egressVlanId));
ChannelUtils.writeFixedLengthString(bb, message.ifName, 16);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnVportQInQVer10("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesRequestVer10.java | 170 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesRequestVer11.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesRequestVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesRequestVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesRequestVer14.java | 170 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 5
byte type = bb.readByte();
if(type != (byte) 0x5)
throw new OFParseError("Wrong type: Expected=OFType.FEATURES_REQUEST(5), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 794 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 793 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 793 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 793 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 793 |
bb.writeShort((short) 0x0);
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
bb.writeShort(U16.t(message.priority));
bb.writeInt(message.bufferId.getInt());
message.outPort.write2Bytes(bb);
OFFlowModFlagsSerializerVer10.writeTo(bb, message.flags);
ChannelUtils.writeList(bb, message.actions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFFlowAddVer10("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigReplyVer10.java | 258 |
| org/projectfloodlight/openflow/protocol/ver10/OFSetConfigVer10.java | 258 |
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REPLY(8), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer10.readFrom(bb);
int missSendLen = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFGetConfigRequestVer10.java | 170 |
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigRequestVer11.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigRequestVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigRequestVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigRequestVer14.java | 170 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 7
byte type = bb.readByte();
if(type != (byte) 0x7)
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REQUEST(7), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFHelloVer10.java | 194 |
| org/projectfloodlight/openflow/protocol/ver11/OFHelloVer11.java | 194 |
| org/projectfloodlight/openflow/protocol/ver12/OFHelloVer12.java | 194 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 0
byte type = bb.readByte();
if(type != (byte) 0x0)
throw new OFParseError("Wrong type: Expected=OFType.HELLO(0), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueuePropMinRateVer10.java | 165 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueuePropMinRateVer11.java | 165 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropMinRateVer12.java | 165 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 203 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropMinRateVer13.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 203 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropMinRateVer14.java | 165 |
public OFQueuePropMinRate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBarrierReplyVer11.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFBarrierReplyVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFBarrierReplyVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFBarrierReplyVer14.java | 170 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 21
byte type = bb.readByte();
if(type != (byte) 0x15)
throw new OFParseError("Wrong type: Expected=OFType.BARRIER_REPLY(21), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBarrierRequestVer11.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFBarrierRequestVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFBarrierRequestVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFBarrierRequestVer14.java | 170 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_11(2), got="+version);
// fixed value property type == 20
byte type = bb.readByte();
if(type != (byte) 0x14)
throw new OFParseError("Wrong type: Expected=OFType.BARRIER_REQUEST(20), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 88 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 88 |
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public List<OFPortDesc> getPorts() {
return ports;
}
@Override
public Set<OFActionType> getActions()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property actions not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGetConfigReplyVer11.java | 258 |
| org/projectfloodlight/openflow/protocol/ver11/OFSetConfigVer11.java | 258 |
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REPLY(8), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer11.readFrom(bb);
int missSendLen = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionApplyActionsVer11.java | 179 |
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteActionsVer11.java | 179 |
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortFeaturesSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortFeaturesSerializerVer12.java | 34 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortFeaturesSerializerVer13.java | 34 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortFeaturesSerializerVer14.java | 34 |
public class OFPortFeaturesSerializerVer11 {
public final static int PF_10MB_HD_VAL = 0x1;
public final static int PF_10MB_FD_VAL = 0x2;
public final static int PF_100MB_HD_VAL = 0x4;
public final static int PF_100MB_FD_VAL = 0x8;
public final static int PF_1GB_HD_VAL = 0x10;
public final static int PF_1GB_FD_VAL = 0x20;
public final static int PF_10GB_FD_VAL = 0x40;
public final static int PF_COPPER_VAL = 0x800;
public final static int PF_FIBER_VAL = 0x1000;
public final static int PF_AUTONEG_VAL = 0x2000;
public final static int PF_PAUSE_VAL = 0x4000;
public final static int PF_PAUSE_ASYM_VAL = 0x8000;
public final static int PF_40GB_FD_VAL = 0x80;
public final static int PF_100GB_FD_VAL = 0x100;
public final static int PF_1TB_FD_VAL = 0x200;
public final static int PF_OTHER_VAL = 0x400;
public static Set<OFPortFeatures> readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGetConfigReplyVer12.java | 258 |
| org/projectfloodlight/openflow/protocol/ver12/OFSetConfigVer12.java | 258 |
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REPLY(8), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer12.readFrom(bb);
int missSendLen = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionApplyActionsVer12.java | 179 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteActionsVer12.java | 179 |
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer12.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropMaxRateVer12.java | 165 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 241 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropMaxRateVer13.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 241 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropMaxRateVer14.java | 165 |
public OFQueuePropMaxRate readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=0x2(0x2), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvIpv4Ver13.java | 172 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropFlowRemovedSlaveVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvIpv4Ver14.java | 172 |
public OFBsnTlvIpv4 readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x4
short type = bb.readShort();
if(type != (short) 0x4)
throw new OFParseError("Wrong type: Expected=0x4(0x4), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvPortVer13.java | 172 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropPacketInSlaveVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvPortVer14.java | 172 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModPropEthernetVer14.java | 165 |
public OFBsnTlvPort readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x0
short type = bb.readShort();
if(type != (short) 0x0)
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescPropOpticalVer13.java | 243 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescPropOpticalVer13.java | 540 |
private boolean inAdminStatusSet;
private Set<OFCalientOpticalPortAdminState> inAdminStatus;
private boolean inOperStatusSet;
private Set<OFCalientOpticalPortOperState> inOperStatus;
private boolean inOperCapabilitySet;
private Set<OFCalientOpticalPortOperCapability> inOperCapability;
private boolean outAdminStatusSet;
private Set<OFCalientOpticalPortAdminState> outAdminStatus;
private boolean outOperStatusSet;
private Set<OFCalientOpticalPortOperState> outOperStatus;
private boolean outOperCapabilitySet;
private Set<OFCalientOpticalPortOperCapability> outOperCapability;
private boolean inportPowerSet;
private String inportPower;
private boolean outportPowerSet;
private String outportPower;
private boolean inPeerNodeSet;
private U64 inPeerNode;
private boolean outPeerNodeSet;
private U64 outPeerNode;
private boolean inPeerPortSet;
private int inPeerPort;
private boolean outPeerPortSet;
private int outPeerPort;
private boolean inCircuitIdSet;
private String inCircuitId;
private boolean outCircuitIdSet;
private String outCircuitId;
private boolean inAliasSet;
private String inAlias;
private boolean outAliasSet;
private String outAlias; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGetConfigReplyVer13.java | 258 |
| org/projectfloodlight/openflow/protocol/ver13/OFSetConfigVer13.java | 258 |
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REPLY(8), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer13.readFrom(bb);
int missSendLen = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionApplyActionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteActionsVer13.java | 179 |
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 287 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 287 |
return new OFMeterFeaturesVer13(
maxMeter,
bandTypes,
capabilities,
maxBands,
maxColor
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFMeterFeatures> {
@Override
public OFMeterFeatures readFrom(ChannelBuffer bb) throws OFParseError {
long maxMeter = U32.f(bb.readInt());
long bandTypes = U32.f(bb.readInt());
long capabilities = U32.f(bb.readInt());
short maxBands = U8.f(bb.readByte());
short maxColor = U8.f(bb.readByte());
// pad: 2 bytes
bb.skipBytes(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropPacketInMasterVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescPropMinRateVer14.java | 165 |
public OFAsyncConfigPropPacketInMaster readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropPortStatusMasterVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModPropVacancyVer14.java | 241 |
public OFAsyncConfigPropPortStatusMaster readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x3
short type = bb.readShort();
if(type != (short) 0x3)
throw new OFParseError("Wrong type: Expected=0x3(0x3), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncConfigPropPortStatusSlaveVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescPropMaxRateVer14.java | 165 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModPropEvictionVer14.java | 173 |
public OFAsyncConfigPropPortStatusSlave readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x2
short type = bb.readShort();
if(type != (short) 0x2)
throw new OFParseError("Wrong type: Expected=0x2(0x2), got="+type);
int length = U16.f(bb.readShort());
if(length != 8)
throw new OFParseError("Wrong length: Expected=8(8), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFGetConfigReplyVer14.java | 258 |
| org/projectfloodlight/openflow/protocol/ver14/OFSetConfigVer14.java | 258 |
throw new OFParseError("Wrong type: Expected=OFType.GET_CONFIG_REPLY(8), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
Set<OFConfigFlags> flags = OFConfigFlagsSerializerVer14.readFrom(bb);
int missSendLen = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionApplyActionsVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteActionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer14.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionTypeSerializerVer10.java | 44 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionTypeSerializerVer11.java | 57 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionTypeSerializerVer12.java | 46 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionTypeSerializerVer13.java | 48 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionTypeSerializerVer14.java | 48 |
public final static short EXPERIMENTER_VAL = (short) 0xffff;
public static OFActionType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFActionType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFActionType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFActionType ofWireValue(short val) {
switch(val) {
case OUTPUT_VAL:
return OFActionType.OUTPUT;
case SET_VLAN_VID_VAL: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnSetPktinSuppressionRequestVer10.java | 453 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnSetPktinSuppressionRequestVer11.java | 453 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnSetPktinSuppressionRequestVer12.java | 453 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetPktinSuppressionRequestVer13.java | 453 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetPktinSuppressionRequestVer14.java | 453 |
sink.putByte((byte) 0x1);
// fixed value property type = 4
sink.putByte((byte) 0x4);
// fixed value property length = 32
sink.putShort((short) 0x20);
sink.putLong(message.xid);
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0xbL
sink.putInt(0xb);
sink.putBoolean(message.enabled);
// skip pad (1 bytes)
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
sink.putInt(message.priority);
message.cookie.putTo(sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnSetPktinSuppressionRequestVer10> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 488 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 488 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 530 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 530 |
OFGroupStatsEntryVer11 other = (OFGroupStatsEntryVer11) obj;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
if( refCount != other.refCount)
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (bucketStats == null) { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/datapath/OVXSwitchCapabilities.java | 81 |
| net/onrc/openvirtex/elements/datapath/OVXSwitchCapabilities.java | 114 |
public Set<OFCapabilities> getOVXSwitchCapabilities() {
Set<OFCapabilities> capabilities=new HashSet<OFCapabilities>();
if (this.flowStatsCapability) {
capabilities.add(OFCapabilities.FLOW_STATS);
}
if (this.tableStatsCapability) {
capabilities.add(OFCapabilities.TABLE_STATS);
}
if (this.portStatsCapability) {
capabilities.add(OFCapabilities.PORT_STATS);
}
if (this.stpCapability) {
capabilities.add(OFCapabilities.STP);
}
if (this.reassembleCapability) {
capabilities.add(OFCapabilities.IP_REASM);
}
if (this.queueStatsCapability) {
capabilities.add(OFCapabilities.QUEUE_STATS);
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowRemovedVer10.java | 72 |
| net/onrc/openvirtex/messages/ver13/OVXFlowRemovedVer13.java | 75 |
if (fm.hasFlag(OFFlowModFlagsSerializerVer10.SEND_FLOW_REM_VAL)) {
writeFields(fm);
vsw.sendMsg(this, sw);
}
}
} catch (MappingException e) {
log.warn("Exception fetching FlowMod from FlowTable: {}", e);
}
}
/**
* rewrites the fields of this message using values from the supplied
* FlowMod.
*
* @param fm
* the original FlowMod associated with this FlowRemoved
* @return the physical cookie
*/
private void writeFields(OVXFlowMod fm) {
this.cookie = fm.getCookie();
this.match = fm.getMatch();
this.priority = fm.getPriority();
this.idleTimeout = fm.getIdleTimeout();
}
@Override
public String toString() {
return "OVXFlowRemoved: cookie=" + this.cookie + " priority="
+ this.priority + " match=" + this.match + " reason="
+ this.reason; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFErrorTypeSerializerVer11.java | 30 |
| org/projectfloodlight/openflow/protocol/ver12/OFErrorTypeSerializerVer12.java | 30 |
| org/projectfloodlight/openflow/protocol/ver13/OFErrorTypeSerializerVer13.java | 30 |
| org/projectfloodlight/openflow/protocol/ver14/OFErrorTypeSerializerVer14.java | 30 |
public class OFErrorTypeSerializerVer11 {
public final static short HELLO_FAILED_VAL = (short) 0x0;
public final static short BAD_REQUEST_VAL = (short) 0x1;
public final static short BAD_ACTION_VAL = (short) 0x2;
public final static short BAD_INSTRUCTION_VAL = (short) 0x3;
public final static short BAD_MATCH_VAL = (short) 0x4;
public final static short FLOW_MOD_FAILED_VAL = (short) 0x5;
public final static short GROUP_MOD_FAILED_VAL = (short) 0x6;
public final static short PORT_MOD_FAILED_VAL = (short) 0x7;
public final static short TABLE_MOD_FAILED_VAL = (short) 0x8;
public final static short QUEUE_OP_FAILED_VAL = (short) 0x9;
public final static short SWITCH_CONFIG_FAILED_VAL = (short) 0xa;
public static OFErrorType readFrom(ChannelBuffer bb) throws OFParseError { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public List<OFBsnDebugCounterDescStatsEntry> getEntries() {
return entries;
}
public OFBsnDebugCounterDescStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnDebugCounterDescStatsReply.Builder {
final OFBsnDebugCounterDescStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public List<OFBsnDebugCounterStatsEntry> getEntries() {
return entries;
}
public OFBsnDebugCounterStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnDebugCounterStatsReply.Builder {
final OFBsnDebugCounterStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public List<OFBsnFlowChecksumBucketStatsEntry> getEntries() {
return entries;
}
public OFBsnFlowChecksumBucketStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnFlowChecksumBucketStatsReply.Builder {
final OFBsnFlowChecksumBucketStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x10L;
}
@Override
public List<OFBsnGenericStatsEntry> getEntries() {
return entries;
}
public OFBsnGenericStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGenericStatsReply.Builder {
final OFBsnGenericStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public List<OFBsnGentableBucketStatsEntry> getEntries() {
return entries;
}
public OFBsnGentableBucketStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableBucketStatsReply.Builder {
final OFBsnGentableBucketStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public List<OFBsnGentableDescStatsEntry> getEntries() {
return entries;
}
public OFBsnGentableDescStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableDescStatsReply.Builder {
final OFBsnGentableDescStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public List<OFBsnGentableEntryDescStatsEntry> getEntries() {
return entries;
}
public OFBsnGentableEntryDescStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableEntryDescStatsReply.Builder {
final OFBsnGentableEntryDescStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 65 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 65 |
throw new NullPointerException("OFBsnGentableEntryDescStatsRequestVer13: property checksumMask cannot be null");
}
this.xid = xid;
this.flags = flags;
this.tableId = tableId;
this.checksum = checksum;
this.checksumMask = checksumMask;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x3L;
}
@Override
public List<OFBsnGentableEntryStatsEntry> getEntries() {
return entries;
}
public OFBsnGentableEntryStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableEntryStatsReply.Builder {
final OFBsnGentableEntryStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x7L;
}
@Override
public List<OFBsnGentableStatsEntry> getEntries() {
return entries;
}
public OFBsnGentableStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableStatsReply.Builder {
final OFBsnGentableStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1L;
}
@Override
public List<OFBsnLacpStatsEntry> getEntries() {
return entries;
}
public OFBsnLacpStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnLacpStatsReply.Builder {
final OFBsnLacpStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public List<OFBsnPortCounterStatsEntry> getEntries() {
return entries;
}
public OFBsnPortCounterStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnPortCounterStatsReply.Builder {
final OFBsnPortCounterStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x6L;
}
@Override
public List<OFBsnSwitchPipelineStatsEntry> getEntries() {
return entries;
}
public OFBsnSwitchPipelineStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnSwitchPipelineStatsReply.Builder {
final OFBsnSwitchPipelineStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xbL;
}
@Override
public List<OFBsnTableChecksumStatsEntry> getEntries() {
return entries;
}
public OFBsnTableChecksumStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnTableChecksumStatsReply.Builder {
final OFBsnTableChecksumStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public List<OFBsnVlanCounterStatsEntry> getEntries() {
return entries;
}
public OFBsnVlanCounterStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnVlanCounterStatsReply.Builder {
final OFBsnVlanCounterStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 73 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 73 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public List<OFBsnVrfCounterStatsEntry> getEntries() {
return entries;
}
public OFBsnVrfCounterStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnVrfCounterStatsReply.Builder {
final OFBsnVrfCounterStatsReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 65 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 65 |
throw new NullPointerException("OFBsnGentableEntryDescStatsRequestVer14: property checksumMask cannot be null");
}
this.xid = xid;
this.flags = flags;
this.tableId = tableId;
this.checksum = checksum;
this.checksumMask = checksumMask;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxTimeoutVer10.java | 290 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxTimeoutVer11.java | 290 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxTimeoutVer12.java | 290 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxTimeoutVer13.java | 290 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxTimeoutVer14.java | 290 |
throw new OFParseError("Wrong length: Expected=19(19), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x23L
int subtype = bb.readInt();
if(subtype != 0x23)
throw new OFParseError("Wrong subtype: Expected=0x23L(0x23L), got="+subtype);
OFPort portNo = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 658 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 657 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 657 |
Match match = ChannelUtilsVer10.readOFMatch(bb);
long durationSec = U32.f(bb.readInt());
long durationNsec = U32.f(bb.readInt());
int priority = U16.f(bb.readShort());
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6);
U64 cookie = U64.ofRaw(bb.readLong());
U64 packetCount = U64.ofRaw(bb.readLong());
U64 byteCount = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 357 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 525 |
throw new OFParseError("Wrong type: Expected=OFType.PACKET_OUT(13), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort inPort = OFPort.read2Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 828 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 828 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 828 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 828 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 828 |
sink.putShort((short) 0x0);
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
sink.putInt(message.priority);
message.bufferId.putTo(sink);
message.outPort.putTo(sink);
message.outGroup.putTo(sink);
OFFlowModFlagsSerializerVer11.putTo(message.flags, sink);
// skip pad (2 bytes)
message.match.putTo(sink);
FunnelUtils.putList(message.instructions, sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFFlowAddVer11> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 41 |
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer12.MATCH_WILDCARD_ALL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 828 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 828 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 828 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 828 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 828 |
sink.putShort((short) 0x0);
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
sink.putInt(message.priority);
message.bufferId.putTo(sink);
message.outPort.putTo(sink);
message.outGroup.putTo(sink);
OFFlowModFlagsSerializerVer12.putTo(message.flags, sink);
// skip pad (2 bytes)
message.match.putTo(sink);
FunnelUtils.putList(message.instructions, sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFFlowAddVer12> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 229 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 515 |
private boolean tableIdSet;
private TableId tableId;
private boolean durationSecSet;
private long durationSec;
private boolean durationNsecSet;
private long durationNsec;
private boolean prioritySet;
private int priority;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean cookieSet;
private U64 cookie;
private boolean adminStatusSet;
private Set<OFCalientCflowAdminState> adminStatus;
private boolean operStatusSet;
private Set<OFCalientCflowOperationalState> operStatus;
private boolean operCapabilitySet;
private Set<OFCalientCflowCapability> operCapability;
private boolean alarmSet;
private Set<OFCalientOcsAlarm> alarm;
private boolean portPowerSet;
private String portPower;
private boolean connectedPortPowerSet;
private String connectedPortPower;
private boolean cflowNameSet;
private String cflowName;
private boolean matchSet;
private Match match; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 872 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 868 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 867 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 868 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 866 |
sink.putShort((short) 0x0);
sink.putInt(message.idleTimeout);
sink.putInt(message.hardTimeout);
sink.putInt(message.priority);
message.bufferId.putTo(sink);
message.outPort.putTo(sink);
message.outGroup.putTo(sink);
OFFlowModFlagsSerializerVer13.putTo(message.flags, sink);
// skip pad (2 bytes)
message.match.putTo(sink);
FunnelUtils.putList(message.instructions, sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFFlowAddVer13> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 105 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 162 |
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements() {
return elements;
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) {
this.elements = elements;
this.elementsSet = true;
return this;
}
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 162 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 105 |
}
@Override
public OFType getType() {
return OFType.HELLO;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFHello.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public List<OFHelloElem> getElements() {
return elements;
}
@Override
public OFHello.Builder setElements(List<OFHelloElem> elements) {
this.elements = elements;
this.elementsSet = true;
return this;
}
//
@Override
public OFHello build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/ConnectOVXRoute.java | 134 |
| net/onrc/openvirtex/api/service/handlers/tenant/SetOVXLinkPath.java | 116 |
+ e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
} catch (final InvalidPriorityException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
}
return resp;
}
@Override
public JSONRPC2ParamsType getType() {
return JSONRPC2ParamsType.OBJECT;
}
} | |
| File | Line |
|---|---|
| net/onrc/openvirtex/api/service/handlers/tenant/DisconnectOVXLink.java | 77 |
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXNetwork.java | 79 |
| net/onrc/openvirtex/api/service/handlers/tenant/RemoveOVXSwitch.java | 75 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXNetwork.java | 67 |
| net/onrc/openvirtex/api/service/handlers/tenant/StartOVXSwitch.java | 78 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXNetwork.java | 68 |
| net/onrc/openvirtex/api/service/handlers/tenant/StopOVXSwitch.java | 77 |
+ ": Invalid virtual link : " + e.getMessage()), 0);
} catch (final InvalidTenantIdException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": Invalid tenant id : " + e.getMessage()), 0);
} catch (final NetworkMappingException e) {
resp = new JSONRPC2Response(new JSONRPC2Error(
JSONRPC2Error.INVALID_PARAMS.getCode(), this.cmdName()
+ ": " + e.getMessage()), 0);
}
return resp;
}
@Override
public JSONRPC2ParamsType getType() {
return JSONRPC2ParamsType.OBJECT;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 200 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 200 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnArpOffloadVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnAutoNegotiationVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDenyVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableL3Ver13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableSplitHorizonCheckVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableSrcMacCheckVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnDisableVlanCountersVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnInternalPriorityVer13.java | 200 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPacketOfDeathVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPermitVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnPrioritizePdusVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnRequireVlanXlateVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnSpanDestinationVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnArpOffloadVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnAutoNegotiationVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDenyVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableL3Ver14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableSrcMacCheckVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnDisableVlanCountersVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnInternalPriorityVer14.java | 200 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPacketOfDeathVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPermitVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnPrioritizePdusVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnRequireVlanXlateVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnSpanDestinationVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x2L
int subtype = bb.readInt();
if(subtype != 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableSetReplyVer10.java | 386 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableSetReplyVer11.java | 386 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableSetReplyVer12.java | 386 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableSetReplyVer13.java | 386 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableSetReplyVer13.java | 386 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableSetReplyVer14.java | 386 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableSetReplyVer14.java | 386 |
OFBsnBwEnableSetReplyVer10 other = (OFBsnBwEnableSetReplyVer10) obj;
if( xid != other.xid)
return false;
if( enable != other.enable)
return false;
if( status != other.status)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (enable ^ (enable >>> 32));
result = prime * (int) (status ^ (status >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 480 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 480 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 480 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 480 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 480 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 480 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 480 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 480 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 480 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 480 |
b.append("timeoutMs=").append(timeoutMs);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("slotNum=").append(slotNum);
b.append(", ");
b.append("data=").append(Arrays.toString(data));
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateReplyVer10.java | 386 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateReplyVer11.java | 386 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateReplyVer12.java | 386 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateReplyVer13.java | 386 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateReplyVer14.java | 386 |
OFBsnVirtualPortCreateReplyVer10 other = (OFBsnVirtualPortCreateReplyVer10) obj;
if( xid != other.xid)
return false;
if( status != other.status)
return false;
if( vportNo != other.vportNo)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (status ^ (status >>> 32));
result = prime * (int) (vportNo ^ (vportNo >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraHeaderVer10.java | 45 |
| org/projectfloodlight/openflow/protocol/ver11/OFNiciraHeaderVer11.java | 45 |
| org/projectfloodlight/openflow/protocol/ver12/OFNiciraHeaderVer12.java | 45 |
| org/projectfloodlight/openflow/protocol/ver13/OFNiciraHeaderVer13.java | 45 |
| org/projectfloodlight/openflow/protocol/ver14/OFNiciraHeaderVer14.java | 45 |
throw new OFParseError("Wrong version: Expected=OFVersion.OF_10(1), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x2320L
int experimenter = bb.readInt();
if(experimenter != 0x2320)
throw new OFParseError("Wrong experimenter: Expected=0x2320L(0x2320L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 354 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 368 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 368 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortStatusVer13.java | 325 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 368 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 231 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 325 |
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : parentMessage.name;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : parentMessage.config;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : parentMessage.state;
if(state == null)
throw new NullPointerException("Property state must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 813 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 813 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 813 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 847 |
public void funnel(OFPortStatsEntryVer10 message, PrimitiveSink sink) {
message.portNo.putTo(sink);
// skip pad (6 bytes)
message.rxPackets.putTo(sink);
message.txPackets.putTo(sink);
message.rxBytes.putTo(sink);
message.txBytes.putTo(sink);
message.rxDropped.putTo(sink);
message.txDropped.putTo(sink);
message.rxErrors.putTo(sink);
message.txErrors.putTo(sink);
message.rxFrameErr.putTo(sink);
message.rxOverErr.putTo(sink);
message.rxCrcErr.putTo(sink);
message.collisions.putTo(sink); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketCounterVer11.java | 137 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketCounterVer12.java | 137 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketCounterVer13.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketCounterVer14.java | 137 |
return new OFBucketCounterVer11(
packetCount,
byteCount
);
}
}
static class Builder implements OFBucketCounter.Builder {
// OF message fields
private boolean packetCountSet;
private U64 packetCount;
private boolean byteCountSet;
private U64 byteCount;
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFBucketCounter.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFBucketCounter.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 829 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 829 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 1049 |
} else if (!instructions.equals(other.instructions))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((tableId == null) ? 0 : tableId.hashCode());
result = prime * (int) (durationSec ^ (durationSec >>> 32));
result = prime * (int) (durationNsec ^ (durationNsec >>> 32));
result = prime * result + priority;
result = prime * result + idleTimeout;
result = prime * result + hardTimeout;
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionApplyActionsVer11.java | 179 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteActionsVer12.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteActionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteActionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=OFInstructionType.APPLY_ACTIONS(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteActionsVer11.java | 179 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionApplyActionsVer12.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionApplyActionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionApplyActionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=OFInstructionType.WRITE_ACTIONS(3), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer11.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpVer14.java | 160 |
return new OFOxmArpOpVer12(
value
);
}
}
static class Builder implements OFOxmArpOp.Builder {
// OF message fields
private boolean valueSet;
private ArpOpcode value;
@Override
public long getTypeLen() {
return 0x80002a02L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOp.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaVer14.java | 160 |
return new OFOxmArpShaVer12(
value
);
}
}
static class Builder implements OFOxmArpSha.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x80003006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpSha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaVer14.java | 160 |
return new OFOxmArpSpaVer12(
value
);
}
}
static class Builder implements OFOxmArpSpa.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
@Override
public long getTypeLen() {
return 0x80002c04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaVer14.java | 160 |
return new OFOxmArpThaVer12(
value
);
}
}
static class Builder implements OFOxmArpTha.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x80003206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpTha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaVer14.java | 160 |
return new OFOxmArpTpaVer12(
value
);
}
}
static class Builder implements OFOxmArpTpa.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
@Override
public long getTypeLen() {
return 0x80002e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdVer14.java | 160 |
return new OFOxmBsnEgrPortGroupIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnEgrPortGroupId.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
@Override
public long getTypeLen() {
return 0x30e04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedVer13.java | 160 |
return new OFOxmBsnGlobalVrfAllowedVer12(
value
);
}
}
static class Builder implements OFOxmBsnGlobalVrfAllowed.Builder {
// OF message fields
private boolean valueSet;
private OFBooleanValue value;
@Override
public long getTypeLen() {
return 0x30601L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowed.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128Ver14.java | 160 |
return new OFOxmBsnInPorts128Ver12(
value
);
}
}
static class Builder implements OFOxmBsnInPorts128.Builder {
// OF message fields
private boolean valueSet;
private OFBitMask128 value;
@Override
public long getTypeLen() {
return 0x30010L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512Ver14.java | 160 |
return new OFOxmBsnInPorts512Ver12(
value
);
}
}
static class Builder implements OFOxmBsnInPorts512.Builder {
// OF message fields
private boolean valueSet;
private OFBitMask512 value;
@Override
public long getTypeLen() {
return 0x32640L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdVer14.java | 160 |
return new OFOxmBsnIngressPortGroupIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnIngressPortGroupId.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
@Override
public long getTypeLen() {
return 0x32804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitVer13.java | 160 |
return new OFOxmBsnL2CacheHitVer12(
value
);
}
}
static class Builder implements OFOxmBsnL2CacheHit.Builder {
// OF message fields
private boolean valueSet;
private OFBooleanValue value;
@Override
public long getTypeLen() {
return 0x32401L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHit.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdVer13.java | 160 |
return new OFOxmBsnL3DstClassIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnL3DstClassId.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
@Override
public long getTypeLen() {
return 0x30c04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdVer14.java | 160 |
return new OFOxmBsnL3InterfaceClassIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnL3InterfaceClassId.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
@Override
public long getTypeLen() {
return 0x30804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdVer14.java | 160 |
return new OFOxmBsnL3SrcClassIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnL3SrcClassId.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
@Override
public long getTypeLen() {
return 0x30a04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdVer14.java | 160 |
return new OFOxmBsnLagIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnLagId.Builder {
// OF message fields
private boolean valueSet;
private LagId value;
@Override
public long getTypeLen() {
return 0x30204L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagId.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsVer14.java | 160 |
return new OFOxmBsnTcpFlagsVer12(
value
);
}
}
static class Builder implements OFOxmBsnTcpFlags.Builder {
// OF message fields
private boolean valueSet;
private U16 value;
@Override
public long getTypeLen() {
return 0x32002L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlags.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0Ver14.java | 160 |
return new OFOxmBsnUdf0Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf0.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31004L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1Ver14.java | 160 |
return new OFOxmBsnUdf1Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf1.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31204L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2Ver14.java | 160 |
return new OFOxmBsnUdf2Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf2.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31404L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3Ver14.java | 160 |
return new OFOxmBsnUdf3Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf3.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31604L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4Ver14.java | 160 |
return new OFOxmBsnUdf4Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf4.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31804L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5Ver14.java | 160 |
return new OFOxmBsnUdf5Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf5.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31a04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6Ver14.java | 160 |
return new OFOxmBsnUdf6Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf6.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31c04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7Ver12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7Ver13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7Ver14.java | 160 |
return new OFOxmBsnUdf7Ver12(
value
);
}
}
static class Builder implements OFOxmBsnUdf7.Builder {
// OF message fields
private boolean valueSet;
private UDF value;
@Override
public long getTypeLen() {
return 0x31e04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdVer14.java | 160 |
return new OFOxmBsnVlanXlatePortGroupIdVer12(
value
);
}
}
static class Builder implements OFOxmBsnVlanXlatePortGroupId.Builder {
// OF message fields
private boolean valueSet;
private ClassId value;
@Override
public long getTypeLen() {
return 0x32204L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfVer14.java | 160 |
return new OFOxmBsnVrfVer12(
value
);
}
}
static class Builder implements OFOxmBsnVrf.Builder {
// OF message fields
private boolean valueSet;
private VRF value;
@Override
public long getTypeLen() {
return 0x30404L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrf.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstVer14.java | 160 |
return new OFOxmEthDstVer12(
value
);
}
}
static class Builder implements OFOxmEthDst.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x80000606L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcVer14.java | 160 |
return new OFOxmEthSrcVer12(
value
);
}
}
static class Builder implements OFOxmEthSrc.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x80000806L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeVer14.java | 160 |
return new OFOxmEthTypeVer12(
value
);
}
}
static class Builder implements OFOxmEthType.Builder {
// OF message fields
private boolean valueSet;
private EthType value;
@Override
public long getTypeLen() {
return 0x80000a02L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthType.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeVer14.java | 160 |
return new OFOxmIcmpv4CodeVer12(
value
);
}
}
static class Builder implements OFOxmIcmpv4Code.Builder {
// OF message fields
private boolean valueSet;
private ICMPv4Code value;
@Override
public long getTypeLen() {
return 0x80002801L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4Code.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeVer14.java | 160 |
return new OFOxmIcmpv4TypeVer12(
value
);
}
}
static class Builder implements OFOxmIcmpv4Type.Builder {
// OF message fields
private boolean valueSet;
private ICMPv4Type value;
@Override
public long getTypeLen() {
return 0x80002601L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4Type.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeVer14.java | 160 |
return new OFOxmIcmpv6CodeVer12(
value
);
}
}
static class Builder implements OFOxmIcmpv6Code.Builder {
// OF message fields
private boolean valueSet;
private U8 value;
@Override
public long getTypeLen() {
return 0x80003c01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Code.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeVer14.java | 160 |
return new OFOxmIcmpv6TypeVer12(
value
);
}
}
static class Builder implements OFOxmIcmpv6Type.Builder {
// OF message fields
private boolean valueSet;
private U8 value;
@Override
public long getTypeLen() {
return 0x80003a01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Type.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortVer14.java | 160 |
return new OFOxmInPhyPortVer12(
value
);
}
}
static class Builder implements OFOxmInPhyPort.Builder {
// OF message fields
private boolean valueSet;
private OFPort value;
@Override
public long getTypeLen() {
return 0x80000204L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortVer14.java | 160 |
return new OFOxmInPortVer12(
value
);
}
}
static class Builder implements OFOxmInPort.Builder {
// OF message fields
private boolean valueSet;
private OFPort value;
@Override
public long getTypeLen() {
return 0x80000004L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpVer14.java | 160 |
return new OFOxmIpDscpVer12(
value
);
}
}
static class Builder implements OFOxmIpDscp.Builder {
// OF message fields
private boolean valueSet;
private IpDscp value;
@Override
public long getTypeLen() {
return 0x80001001L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscp.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnVer14.java | 160 |
return new OFOxmIpEcnVer12(
value
);
}
}
static class Builder implements OFOxmIpEcn.Builder {
// OF message fields
private boolean valueSet;
private IpEcn value;
@Override
public long getTypeLen() {
return 0x80001201L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcn.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoVer14.java | 160 |
return new OFOxmIpProtoVer12(
value
);
}
}
static class Builder implements OFOxmIpProto.Builder {
// OF message fields
private boolean valueSet;
private IpProtocol value;
@Override
public long getTypeLen() {
return 0x80001401L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProto.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstVer14.java | 160 |
return new OFOxmIpv4DstVer12(
value
);
}
}
static class Builder implements OFOxmIpv4Dst.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
@Override
public long getTypeLen() {
return 0x80001804L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcVer14.java | 160 |
return new OFOxmIpv4SrcVer12(
value
);
}
}
static class Builder implements OFOxmIpv4Src.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
@Override
public long getTypeLen() {
return 0x80001604L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstVer14.java | 160 |
return new OFOxmIpv6DstVer12(
value
);
}
}
static class Builder implements OFOxmIpv6Dst.Builder {
// OF message fields
private boolean valueSet;
private IPv6Address value;
@Override
public long getTypeLen() {
return 0x80003610L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Dst.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelVer14.java | 160 |
return new OFOxmIpv6FlabelVer12(
value
);
}
}
static class Builder implements OFOxmIpv6Flabel.Builder {
// OF message fields
private boolean valueSet;
private IPv6FlowLabel value;
@Override
public long getTypeLen() {
return 0x80003804L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6Flabel.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllVer14.java | 160 |
return new OFOxmIpv6NdSllVer12(
value
);
}
}
static class Builder implements OFOxmIpv6NdSll.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x80004006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetVer14.java | 160 |
return new OFOxmIpv6NdTargetVer12(
value
);
}
}
static class Builder implements OFOxmIpv6NdTarget.Builder {
// OF message fields
private boolean valueSet;
private IPv6Address value;
@Override
public long getTypeLen() {
return 0x80003e10L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTarget.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllVer14.java | 160 |
return new OFOxmIpv6NdTllVer12(
value
);
}
}
static class Builder implements OFOxmIpv6NdTll.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x80004206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcVer14.java | 160 |
return new OFOxmIpv6SrcVer12(
value
);
}
}
static class Builder implements OFOxmIpv6Src.Builder {
// OF message fields
private boolean valueSet;
private IPv6Address value;
@Override
public long getTypeLen() {
return 0x80003410L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Src.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataVer14.java | 160 |
return new OFOxmMetadataVer12(
value
);
}
}
static class Builder implements OFOxmMetadata.Builder {
// OF message fields
private boolean valueSet;
private OFMetadata value;
@Override
public long getTypeLen() {
return 0x80000408L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadata.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelVer14.java | 160 |
return new OFOxmMplsLabelVer12(
value
);
}
}
static class Builder implements OFOxmMplsLabel.Builder {
// OF message fields
private boolean valueSet;
private U32 value;
@Override
public long getTypeLen() {
return 0x80004404L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabel.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcVer14.java | 160 |
return new OFOxmMplsTcVer12(
value
);
}
}
static class Builder implements OFOxmMplsTc.Builder {
// OF message fields
private boolean valueSet;
private U8 value;
@Override
public long getTypeLen() {
return 0x80004601L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTc.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstVer14.java | 160 |
return new OFOxmSctpDstVer12(
value
);
}
}
static class Builder implements OFOxmSctpDst.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
@Override
public long getTypeLen() {
return 0x80002402L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcVer14.java | 160 |
return new OFOxmSctpSrcVer12(
value
);
}
}
static class Builder implements OFOxmSctpSrc.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
@Override
public long getTypeLen() {
return 0x80002202L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstVer14.java | 160 |
return new OFOxmTcpDstVer12(
value
);
}
}
static class Builder implements OFOxmTcpDst.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
@Override
public long getTypeLen() {
return 0x80001c02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcVer14.java | 160 |
return new OFOxmTcpSrcVer12(
value
);
}
}
static class Builder implements OFOxmTcpSrc.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
@Override
public long getTypeLen() {
return 0x80001a02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstVer14.java | 160 |
return new OFOxmTunnelIpv4DstVer12(
value
);
}
}
static class Builder implements OFOxmTunnelIpv4Dst.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
@Override
public long getTypeLen() {
return 0x14004L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcVer14.java | 160 |
return new OFOxmTunnelIpv4SrcVer12(
value
);
}
}
static class Builder implements OFOxmTunnelIpv4Src.Builder {
// OF message fields
private boolean valueSet;
private IPv4Address value;
@Override
public long getTypeLen() {
return 0x13e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstVer14.java | 160 |
return new OFOxmUdpDstVer12(
value
);
}
}
static class Builder implements OFOxmUdpDst.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
@Override
public long getTypeLen() {
return 0x80002002L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcVer14.java | 160 |
return new OFOxmUdpSrcVer12(
value
);
}
}
static class Builder implements OFOxmUdpSrc.Builder {
// OF message fields
private boolean valueSet;
private TransportPort value;
@Override
public long getTypeLen() {
return 0x80001e02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpVer14.java | 160 |
return new OFOxmVlanPcpVer12(
value
);
}
}
static class Builder implements OFOxmVlanPcp.Builder {
// OF message fields
private boolean valueSet;
private VlanPcp value;
@Override
public long getTypeLen() {
return 0x80000e01L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcp.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidVer14.java | 160 |
return new OFOxmVlanVidVer12(
value
);
}
}
static class Builder implements OFOxmVlanVid.Builder {
// OF message fields
private boolean valueSet;
private OFVlanVidMatch value;
@Override
public long getTypeLen() {
return 0x80000c02L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVid.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnChecksumVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnGentableVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnMirrorVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnSetTunnelDstVer13.java | 89 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnArpOffloadVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnAutoNegotiationVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDenyVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDhcpOffloadVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableL3Ver13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableSplitHorizonCheckVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableSrcMacCheckVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnDisableVlanCountersVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnInternalPriorityVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPacketOfDeathVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPermitVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnPrioritizePdusVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnRequireVlanXlateVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdBsnSpanDestinationVer13.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnChecksumVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnGentableVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnMirrorVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdBsnSetTunnelDstVer14.java | 89 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnArpOffloadVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnAutoNegotiationVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDenyVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDhcpOffloadVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableL3Ver14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableSrcMacCheckVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnDisableVlanCountersVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnInternalPriorityVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPacketOfDeathVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPermitVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnPrioritizePdusVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnRequireVlanXlateVer14.java | 88 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdBsnSpanDestinationVer14.java | 88 |
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length != 12)
throw new OFParseError("Wrong length: Expected=12(12), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
// fixed value property subtype == 0x4L
int subtype = bb.readInt();
if(subtype != 0x4) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionTypeSerializerVer13.java | 103 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionTypeSerializerVer14.java | 103 |
throw new IllegalArgumentException("Illegal wire value for type OFActionType in version 1.3: " + val);
}
}
public static short toWireValue(OFActionType e) {
switch(e) {
case OUTPUT:
return OUTPUT_VAL;
case COPY_TTL_OUT:
return COPY_TTL_OUT_VAL;
case COPY_TTL_IN:
return COPY_TTL_IN_VAL;
case SET_MPLS_TTL:
return SET_MPLS_TTL_VAL;
case DEC_MPLS_TTL:
return DEC_MPLS_TTL_VAL;
case PUSH_VLAN:
return PUSH_VLAN_VAL;
case POP_VLAN:
return POP_VLAN_VAL;
case PUSH_MPLS:
return PUSH_MPLS_VAL;
case POP_MPLS:
return POP_MPLS_VAL;
case SET_QUEUE:
return SET_QUEUE_VAL;
case GROUP:
return GROUP_VAL;
case SET_NW_TTL:
return SET_NW_TTL_VAL;
case DEC_NW_TTL:
return DEC_NW_TTL_VAL;
case SET_FIELD:
return SET_FIELD_VAL;
case PUSH_PBB:
return PUSH_PBB_VAL;
case POP_PBB:
return POP_PBB_VAL;
case EXPERIMENTER:
return EXPERIMENTER_VAL;
default:
throw new IllegalArgumentException("Illegal enum value for type OFActionType in version 1.3: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsEntryVer13.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsEntryVer14.java | 137 |
return new OFBsnDebugCounterStatsEntryVer13(
counterId,
value
);
}
}
static class Builder implements OFBsnDebugCounterStatsEntry.Builder {
// OF message fields
private boolean counterIdSet;
private U64 counterId;
private boolean valueSet;
private U64 value;
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFBsnDebugCounterStatsEntry.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsEntryVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsEntryVer13.java | 154 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnPortCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnPortCounterStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetAuxCxnsReplyVer13.java | 386 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetAuxCxnsReplyVer14.java | 386 |
OFBsnSetAuxCxnsReplyVer13 other = (OFBsnSetAuxCxnsReplyVer13) obj;
if( xid != other.xid)
return false;
if( numAux != other.numAux)
return false;
if( status != other.status)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (numAux ^ (numAux >>> 32));
result = prime * (int) (status ^ (status >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsEntryVer13.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsEntryVer14.java | 137 |
return new OFBsnTableChecksumStatsEntryVer13(
tableId,
checksum
);
}
}
static class Builder implements OFBsnTableChecksumStatsEntry.Builder {
// OF message fields
private boolean tableIdSet;
private TableId tableId;
private boolean checksumSet;
private U64 checksum;
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableChecksumStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U64 getChecksum() {
return checksum;
}
@Override
public OFBsnTableChecksumStatsEntry.Builder setChecksum(U64 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsEntryVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsEntryVer13.java | 149 |
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsEntry.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnVlanCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnVlanCounterStatsEntry build() {
int vlanVid = this.vlanVidSet ? this.vlanVid : parentMessage.vlanVid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsEntryVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsEntryVer13.java | 149 |
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsEntry.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnVrfCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnVrfCounterStatsEntry build() {
long vrf = this.vrfSet ? this.vrf : parentMessage.vrf; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 332 |
OFMeterBandExperimenterVer13 other = (OFMeterBandExperimenterVer13) obj;
if( rate != other.rate)
return false;
if( burstSize != other.burstSize)
return false;
if( experimenter != other.experimenter)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (rate ^ (rate >>> 32));
result = prime * (int) (burstSize ^ (burstSize >>> 32));
result = prime * (int) (experimenter ^ (experimenter >>> 32));
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandStatsVer13.java | 137 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandStatsVer14.java | 137 |
return new OFMeterBandStatsVer13(
packetBandCount,
byteBandCount
);
}
}
static class Builder implements OFMeterBandStats.Builder {
// OF message fields
private boolean packetBandCountSet;
private U64 packetBandCount;
private boolean byteBandCountSet;
private U64 byteBandCount;
@Override
public U64 getPacketBandCount() {
return packetBandCount;
}
@Override
public OFMeterBandStats.Builder setPacketBandCount(U64 packetBandCount) {
this.packetBandCount = packetBandCount;
this.packetBandCountSet = true;
return this;
}
@Override
public U64 getByteBandCount() {
return byteBandCount;
}
@Override
public OFMeterBandStats.Builder setByteBandCount(U64 byteBandCount) {
this.byteBandCount = byteBandCount;
this.byteBandCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstVer14.java | 160 |
return new OFOxmBsnInnerEthDstVer13(
value
);
}
}
static class Builder implements OFOxmBsnInnerEthDst.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x32c06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcVer14.java | 160 |
return new OFOxmBsnInnerEthSrcVer13(
value
);
}
}
static class Builder implements OFOxmBsnInnerEthSrc.Builder {
// OF message fields
private boolean valueSet;
private MacAddress value;
@Override
public long getTypeLen() {
return 0x32e06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdVer14.java | 160 |
return new OFOxmBsnVxlanNetworkIdVer13(
value
);
}
}
static class Builder implements OFOxmBsnVxlanNetworkId.Builder {
// OF message fields
private boolean valueSet;
private U32 value;
@Override
public long getTypeLen() {
return 0x32a04L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkId.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrVer14.java | 160 |
return new OFOxmIpv6ExthdrVer13(
value
);
}
}
static class Builder implements OFOxmIpv6Exthdr.Builder {
// OF message fields
private boolean valueSet;
private U16 value;
@Override
public long getTypeLen() {
return 0x80004e02L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6Exthdr.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosVer14.java | 160 |
return new OFOxmMplsBosVer13(
value
);
}
}
static class Builder implements OFOxmMplsBos.Builder {
// OF message fields
private boolean valueSet;
private OFBooleanValue value;
@Override
public long getTypeLen() {
return 0x80004801L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBos.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdVer13.java | 160 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdVer14.java | 160 |
return new OFOxmTunnelIdVer13(
value
);
}
}
static class Builder implements OFOxmTunnelId.Builder {
// OF message fields
private boolean valueSet;
private U64 value;
@Override
public long getTypeLen() {
return 0x80004c08L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelId.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalTransportLayerStackVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalTransportLayerStackVer13.java | 149 |
@Override
public int getFeatureType() {
return featureType;
}
@Override
public OFPortOpticalTransportLayerStack.Builder setFeatureType(int featureType) {
this.featureType = featureType;
this.featureTypeSet = true;
return this;
}
@Override
public List<OFPortOpticalTransportLayerEntry> getEntries() {
return entries;
}
@Override
public OFPortOpticalTransportLayerStack.Builder setEntries(List<OFPortOpticalTransportLayerEntry> entries) {
this.entries = entries;
this.entriesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFPortOpticalTransportLayerStack build() {
int featureType = this.featureTypeSet ? this.featureType : parentMessage.featureType; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsEntryVer14.java | 100 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsEntryVer14.java | 154 |
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public OFBsnPortCounterStatsEntry.Builder setPortNo(OFPort portNo) {
this.portNo = portNo;
this.portNoSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnPortCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnPortCounterStatsEntry build() {
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsEntryVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsEntryVer14.java | 149 |
@Override
public int getVlanVid() {
return vlanVid;
}
@Override
public OFBsnVlanCounterStatsEntry.Builder setVlanVid(int vlanVid) {
this.vlanVid = vlanVid;
this.vlanVidSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnVlanCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnVlanCounterStatsEntry build() {
int vlanVid = this.vlanVidSet ? this.vlanVid : parentMessage.vlanVid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsEntryVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsEntryVer14.java | 149 |
@Override
public long getVrf() {
return vrf;
}
@Override
public OFBsnVrfCounterStatsEntry.Builder setVrf(long vrf) {
this.vrf = vrf;
this.vrfSet = true;
return this;
}
@Override
public List<U64> getValues() {
return values;
}
@Override
public OFBsnVrfCounterStatsEntry.Builder setValues(List<U64> values) {
this.values = values;
this.valuesSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnVrfCounterStatsEntry build() {
long vrf = this.vrfSet ? this.vrf : parentMessage.vrf; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescVer14.java | 99 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescVer14.java | 153 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableDesc.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public Set<OFTableConfig> getConfig() {
return config;
}
@Override
public OFTableDesc.Builder setConfig(Set<OFTableConfig> config) {
this.config = config;
this.configSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFTableDesc build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsReplyVer10.java | 80 |
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsReplyVer11.java | 80 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsReplyVer12.java | 80 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsReplyVer13.java | 80 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsReplyVer14.java | 80 |
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.AGGREGATE;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public long getFlowCount() {
return flowCount;
}
public OFAggregateStatsReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFAggregateStatsReply.Builder {
final OFAggregateStatsReplyVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 104 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 161 |
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoReplyVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoReplyVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoReplyVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoReplyVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoReplyVer14.java | 104 |
}
@Override
public OFType getType() {
return OFType.ECHO_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoReply.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoReply.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFEchoReply build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 104 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 161 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 161 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 161 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 161 |
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFEchoRequestVer10.java | 161 |
| org/projectfloodlight/openflow/protocol/ver11/OFEchoRequestVer11.java | 104 |
| org/projectfloodlight/openflow/protocol/ver12/OFEchoRequestVer12.java | 104 |
| org/projectfloodlight/openflow/protocol/ver13/OFEchoRequestVer13.java | 104 |
| org/projectfloodlight/openflow/protocol/ver14/OFEchoRequestVer14.java | 104 |
}
@Override
public OFType getType() {
return OFType.ECHO_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFEchoRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFEchoRequest.Builder setData(byte[] data) {
this.data = data;
this.dataSet = true;
return this;
}
//
@Override
public OFEchoRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 450 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 449 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 449 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 449 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 449 |
static class Builder implements OFFlowAdd.Builder {
// OF message fields
private boolean xidSet;
private long xid;
private boolean matchSet;
private Match match;
private boolean cookieSet;
private U64 cookie;
private boolean idleTimeoutSet;
private int idleTimeout;
private boolean hardTimeoutSet;
private int hardTimeout;
private boolean prioritySet;
private int priority;
private boolean bufferIdSet;
private OFBufferId bufferId;
private boolean outPortSet;
private OFPort outPort;
private boolean flagsSet;
private Set<OFFlowModFlags> flags;
private boolean actionsSet;
private List<OFAction> actions;
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.FLOW_MOD;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFFlowAdd.Builder setXid(long xid) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInReasonSerializerVer10.java | 35 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInReasonSerializerVer11.java | 35 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInReasonSerializerVer12.java | 36 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInReasonSerializerVer13.java | 50 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInReasonSerializerVer14.java | 53 |
public static OFPacketInReason readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readByte());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPacketInReason e) {
bb.writeByte(toWireValue(e));
}
public static void putTo(OFPacketInReason e, PrimitiveSink sink) {
sink.putByte(toWireValue(e));
}
public static OFPacketInReason ofWireValue(byte val) {
switch(val) {
case NO_MATCH_VAL:
return OFPacketInReason.NO_MATCH;
case ACTION_VAL:
return OFPacketInReason.ACTION; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModFailedCodeSerializerVer10.java | 35 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModFailedCodeSerializerVer11.java | 37 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModFailedCodeSerializerVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModFailedCodeSerializerVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModFailedCodeSerializerVer14.java | 38 |
public static OFPortModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFPortModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFPortModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFPortModFailedCode ofWireValue(short val) {
switch(val) {
case BAD_PORT_VAL:
return OFPortModFailedCode.BAD_PORT;
case BAD_HW_ADDR_VAL:
return OFPortModFailedCode.BAD_HW_ADDR; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 344 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 344 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 344 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 344 |
public void write(ChannelBuffer bb, OFBucketVer11 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeShort(U16.t(message.weight));
message.watchPort.write4Bytes(bb);
message.watchGroup.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
ChannelUtils.writeList(bb, message.actions);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBucketVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 106 |
}
@Override
public OFType getType() {
return OFType.FLOW_REMOVED;
}
@Override
public long getXid() {
return xid;
}
@Override
public U64 getCookie() {
return cookie;
}
@Override
public int getPriority() {
return priority;
}
@Override
public short getReason() {
return reason;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public long getDurationSec() {
return durationSec;
}
@Override
public long getDurationNsec() {
return durationNsec;
}
@Override
public int getIdleTimeout() {
return idleTimeout;
}
@Override
public int getHardTimeout()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 787 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 810 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleVer13.java | 519 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 810 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleVer14.java | 519 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 810 |
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + priority;
result = prime * result + reason; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 724 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 724 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 900 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 751 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 768 |
public void write(ChannelBuffer bb, OFFlowStatsEntryVer11 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
message.tableId.writeByte(bb);
// pad: 1 bytes
bb.writeZero(1);
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
bb.writeShort(U16.t(message.priority));
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 845 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 845 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 881 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 904 |
result = prime * result + ((cookie == null) ? 0 : cookie.hashCode());
result = prime * result + ((packetCount == null) ? 0 : packetCount.hashCode());
result = prime * result + ((byteCount == null) ? 0 : byteCount.hashCode());
result = prime * result + ((match == null) ? 0 : match.hashCode());
result = prime * result + ((instructions == null) ? 0 : instructions.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFSwitchConfigFailedCodeSerializerVer11.java | 35 |
| org/projectfloodlight/openflow/protocol/ver12/OFSwitchConfigFailedCodeSerializerVer12.java | 36 |
| org/projectfloodlight/openflow/protocol/ver13/OFSwitchConfigFailedCodeSerializerVer13.java | 36 |
| org/projectfloodlight/openflow/protocol/ver14/OFSwitchConfigFailedCodeSerializerVer14.java | 36 |
public static OFSwitchConfigFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFSwitchConfigFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFSwitchConfigFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFSwitchConfigFailedCode ofWireValue(short val) {
switch(val) {
case BAD_FLAGS_VAL:
return OFSwitchConfigFailedCode.BAD_FLAGS;
case BAD_LEN_VAL:
return OFSwitchConfigFailedCode.BAD_LEN; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableModFailedCodeSerializerVer11.java | 35 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableModFailedCodeSerializerVer12.java | 36 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableModFailedCodeSerializerVer13.java | 36 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModFailedCodeSerializerVer14.java | 36 |
public static OFTableModFailedCode readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFTableModFailedCode e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFTableModFailedCode e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFTableModFailedCode ofWireValue(short val) {
switch(val) {
case BAD_TABLE_VAL:
return OFTableModFailedCode.BAD_TABLE;
case BAD_CONFIG_VAL:
return OFTableModFailedCode.BAD_CONFIG; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionCircuitVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionCircuitVer13.java | 157 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x748771L;
}
@Override
public int getSubtype() {
return 0x19;
}
@Override
public int getHlength() {
return 0x10;
}
@Override
public OFOxm<?> getField() {
return field;
}
@Override
public OFActionCircuit.Builder setField(OFOxm<?> field) {
this.field = field;
this.fieldSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFActionCircuit build() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionVer13.java | 253 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionVer14.java | 253 |
}
//
@Override
public OFBsnControllerConnection build() {
if(!this.stateSet)
throw new IllegalStateException("Property state doesn't have default value -- must be set");
if(state == null)
throw new NullPointerException("Property state must not be null");
OFAuxId auxiliaryId = this.auxiliaryIdSet ? this.auxiliaryId : DEFAULT_AUXILIARY_ID;
if(auxiliaryId == null)
throw new NullPointerException("Property auxiliaryId must not be null");
if(!this.roleSet)
throw new IllegalStateException("Property role doesn't have default value -- must be set");
if(role == null)
throw new NullPointerException("Property role must not be null");
String uri = this.uriSet ? this.uri : DEFAULT_URI;
if(uri == null)
throw new NullPointerException("Property uri must not be null");
return new OFBsnControllerConnectionVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 71 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 71 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL;
}
@Override
public TableId getTableId() {
return tableId;
}
public OFBsnFlowChecksumBucketStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnFlowChecksumBucketStatsRequest.Builder {
final OFBsnFlowChecksumBucketStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 66 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 66 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x5L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
public OFBsnGentableBucketStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableBucketStatsRequest.Builder {
final OFBsnGentableBucketStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 856 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 629 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 856 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 629 |
if( convergenceStatus != other.convergenceStatus)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( actorSysPriority != other.actorSysPriority)
return false;
if (actorSysMac == null) {
if (other.actorSysMac != null)
return false;
} else if (!actorSysMac.equals(other.actorSysMac))
return false;
if( actorPortPriority != other.actorPortPriority)
return false;
if( actorPortNum != other.actorPortNum)
return false;
if( actorKey != other.actorKey)
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLuaUploadVer13.java | 78 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLuaUploadVer14.java | 78 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x40L;
}
@Override
public Set<OFBsnLuaUploadFlags> getFlags() {
return flags;
}
@Override
public String getFilename() {
return filename;
}
@Override
public byte[] getData() {
return data;
}
public OFBsnLuaUpload.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnLuaUpload.Builder {
final OFBsnLuaUploadVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsRequestVer13.java | 71 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsRequestVer14.java | 71 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x8L;
}
@Override
public OFPort getPortNo() {
return portNo;
}
public OFBsnPortCounterStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnPortCounterStatsRequest.Builder {
final OFBsnPortCounterStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 98 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 98 |
BuilderWithParent(OFBsnTlvReferenceVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getType() {
return 0x3b;
}
@Override
public int getTableId() {
return tableId;
}
@Override
public OFBsnTlvReference.Builder setTableId(int tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnTlvReference.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsRequestVer13.java | 68 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsRequestVer14.java | 68 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public int getVlanVid() {
return vlanVid;
}
public OFBsnVlanCounterStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnVlanCounterStatsRequest.Builder {
final OFBsnVlanCounterStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsRequestVer13.java | 68 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsRequestVer14.java | 68 |
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xfL;
}
@Override
public long getVrf() {
return vrf;
}
public OFBsnVrfCounterStatsRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnVrfCounterStatsRequest.Builder {
final OFBsnVrfCounterStatsRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesVer13.java | 58 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesVer14.java | 58 |
OFMeterFeaturesVer13(long maxMeter, long bandTypes, long capabilities, short maxBands, short maxColor) {
this.maxMeter = maxMeter;
this.bandTypes = bandTypes;
this.capabilities = capabilities;
this.maxBands = maxBands;
this.maxColor = maxColor;
}
// Accessors for OF message fields
@Override
public long getMaxMeter() {
return maxMeter;
}
@Override
public long getBandTypes() {
return bandTypes;
}
@Override
public long getCapabilities() {
return capabilities;
}
@Override
public short getMaxBands() {
return maxBands;
}
@Override
public short getMaxColor() {
return maxColor;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropExperimenterMissVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundlePropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFRolePropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropExperimenterMissVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModPropExperimenterVer14.java | 38 |
public OFTableFeaturePropExperimenterMiss readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 0xffff
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=0xffff(0xffff), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
default:
throw new OFParseError("Unknown value for discriminator experimenter of class OFTableFeaturePropExperimenterMissVer13: " + experimenter); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesReplyVer10.java | 356 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesReplyVer11.java | 356 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesReplyVer12.java | 356 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesReplyVer13.java | 356 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesReplyVer14.java | 356 |
OFBsnGetInterfacesReplyVer10 other = (OFBsnGetInterfacesReplyVer10) obj;
if( xid != other.xid)
return false;
if (interfaces == null) {
if (other.interfaces != null)
return false;
} else if (!interfaces.equals(other.interfaces))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((interfaces == null) ? 0 : interfaces.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxRequestVer10.java | 503 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxRequestVer10.java | 503 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxRequestVer11.java | 503 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxRequestVer11.java | 503 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxRequestVer12.java | 503 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxRequestVer12.java | 503 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxRequestVer13.java | 503 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxRequestVer13.java | 503 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxRequestVer14.java | 503 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxRequestVer14.java | 503 |
if( timeoutMs != other.timeoutMs)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( slotNum != other.slotNum)
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * (int) (timeoutMs ^ (timeoutMs >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVirtualPortCreateRequestVer10.java | 350 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVirtualPortCreateRequestVer11.java | 350 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVirtualPortCreateRequestVer12.java | 350 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVirtualPortCreateRequestVer13.java | 350 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVirtualPortCreateRequestVer14.java | 350 |
OFBsnVirtualPortCreateRequestVer10 other = (OFBsnVirtualPortCreateRequestVer10) obj;
if( xid != other.xid)
return false;
if (vport == null) {
if (other.vport != null)
return false;
} else if (!vport.equals(other.vport))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((vport == null) ? 0 : vport.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 658 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 658 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 658 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 658 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 658 |
OFPort loopbackPortNo = OFPort.read2Bytes(bb);
MacAddress localMac = MacAddress.read6Bytes(bb);
MacAddress nhMac = MacAddress.read6Bytes(bb);
IPv4Address srcIp = IPv4Address.read4Bytes(bb);
IPv4Address dstIp = IPv4Address.read4Bytes(bb);
short dscp = U8.f(bb.readByte());
short ttl = U8.f(bb.readByte());
// pad: 2 bytes
bb.skipBytes(2);
long vpn = U32.f(bb.readInt());
long rateLimit = U32.f(bb.readInt());
String ifName = ChannelUtils.readFixedLengthString(bb, 16); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFDescStatsRequestVer10.java | 327 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsRequestVer10.java | 327 |
| org/projectfloodlight/openflow/protocol/ver11/OFDescStatsRequestVer11.java | 332 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsRequestVer11.java | 332 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsRequestVer11.java | 332 |
| org/projectfloodlight/openflow/protocol/ver12/OFDescStatsRequestVer12.java | 332 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsRequestVer12.java | 332 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsRequestVer12.java | 332 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsRequestVer12.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnImageDescStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsRequestVer13.java | 378 |
| org/projectfloodlight/openflow/protocol/ver13/OFDescStatsRequestVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsRequestVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsRequestVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsRequestVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsRequestVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsRequestVer13.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnImageDescStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsRequestVer14.java | 378 |
| org/projectfloodlight/openflow/protocol/ver14/OFDescStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsRequestVer14.java | 332 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsRequestVer14.java | 332 |
OFDescStatsRequestVer10 other = (OFDescStatsRequestVer10) obj;
if( xid != other.xid)
return false;
if (flags == null) {
if (other.flags != null)
return false;
} else if (!flags.equals(other.flags))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 643 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 798 |
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 733 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 732 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 732 |
message.match.writeTo(bb);
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
bb.writeShort(U16.t(message.priority));
bb.writeShort(U16.t(message.idleTimeout));
bb.writeShort(U16.t(message.hardTimeout));
// pad: 6 bytes
bb.writeZero(6);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.packetCount.getValue());
bb.writeLong(message.byteCount.getValue()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFAggregateStatsRequestVer12.java | 505 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFAggregateStatsRequestVer13.java | 505 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsRequestVer13.java | 357 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsReplyVer13.java | 350 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsRequestVer13.java | 521 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 350 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 312 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 283 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFAggregateStatsRequestVer14.java | 505 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsRequestVer14.java | 357 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 312 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 282 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 1
short statsType = bb.readShort();
if(statsType != (short) 0x1) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleReplyVer10.java | 345 |
| org/projectfloodlight/openflow/protocol/ver10/OFNiciraControllerRoleRequestVer10.java | 345 |
OFNiciraControllerRoleReplyVer10 other = (OFNiciraControllerRoleReplyVer10) obj;
if( xid != other.xid)
return false;
if (role == null) {
if (other.role != null)
return false;
} else if (!role.equals(other.role))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((role == null) ? 0 : role.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 491 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketInVer11.java | 679 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 496 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 496 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 496 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 496 |
} else if (!actions.equals(other.actions))
return false;
if (!Arrays.equals(data, other.data))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((bufferId == null) ? 0 : bufferId.hashCode());
result = prime * result + ((inPort == null) ? 0 : inPort.hashCode());
result = prime * result + ((actions == null) ? 0 : actions.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketQueueVer10.java | 307 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketQueueVer11.java | 307 |
OFPacketQueueVer10 other = (OFPacketQueueVer10) obj;
if( queueId != other.queueId)
return false;
if (properties == null) {
if (other.properties != null)
return false;
} else if (!properties.equals(other.properties))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (queueId ^ (queueId >>> 32));
result = prime * result + ((properties == null) ? 0 : properties.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 360 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 360 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 360 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 360 |
throw new UnsupportedOperationException("Property properties not supported in version 1.0");
}
//
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFPort portNo = this.portNoSet ? this.portNo : DEFAULT_PORT_NO;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
long config = this.configSet ? this.config : DEFAULT_CONFIG;
long mask = this.maskSet ? this.mask : DEFAULT_MASK;
long advertise = this.advertiseSet ? this.advertise : DEFAULT_ADVERTISE;
return new OFPortModVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 285 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 282 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 282 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsRequestVer12.java | 505 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 282 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsRequestVer13.java | 505 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 282 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsRequestVer14.java | 505 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REPLY(17), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 4
short statsType = bb.readShort();
if(statsType != (short) 0x4) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 308 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 308 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 308 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 308 |
OFQueueGetConfigRequestVer10 other = (OFQueueGetConfigRequestVer10) obj;
if( xid != other.xid)
return false;
if (port == null) {
if (other.port != null)
return false;
} else if (!port.equals(other.port))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((port == null) ? 0 : port.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 40 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 41 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 40 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 40 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 40 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 40 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 40 |
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer12.MATCH_WILDCARD_ALL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 308 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 308 |
public void write(ChannelBuffer bb, OFActionBsnGentableVer13 message) {
int startIndex = bb.writerIndex();
// fixed value property type = 65535
bb.writeShort((short) 0xffff);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x5L
bb.writeInt(0x5);
bb.writeInt(U32.t(message.tableId));
ChannelUtils.writeList(bb, message.key);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFActionBsnGentableVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnGentableVer13.java | 348 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnGentableVer14.java | 348 |
OFActionBsnGentableVer13 other = (OFActionBsnGentableVer13) obj;
if( tableId != other.tableId)
return false;
if (key == null) {
if (other.key != null)
return false;
} else if (!key.equals(other.key))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (tableId ^ (tableId >>> 32));
result = prime * result + ((key == null) ? 0 : key.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsReplyVer13.java | 356 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsReplyVer14.java | 356 |
OFBsnControllerConnectionsReplyVer13 other = (OFBsnControllerConnectionsReplyVer13) obj;
if( xid != other.xid)
return false;
if (connections == null) {
if (other.connections != null)
return false;
} else if (!connections.equals(other.connections))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((connections == null) ? 0 : connections.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineReplyVer13.java | 349 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetSwitchPipelineRequestVer13.java | 349 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineReplyVer14.java | 349 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetSwitchPipelineRequestVer14.java | 349 |
OFBsnGetSwitchPipelineReplyVer13 other = (OFBsnGetSwitchPipelineReplyVer13) obj;
if( xid != other.xid)
return false;
if (pipeline == null) {
if (other.pipeline != null)
return false;
} else if (!pipeline.equals(other.pipeline))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((pipeline == null) ? 0 : pipeline.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 395 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 342 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 287 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 395 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 342 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 287 |
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
int actorSysPriority = this.actorSysPrioritySet ? this.actorSysPriority : parentMessage.actorSysPriority;
MacAddress actorSysMac = this.actorSysMacSet ? this.actorSysMac : parentMessage.actorSysMac;
if(actorSysMac == null)
throw new NullPointerException("Property actorSysMac must not be null");
int actorPortPriority = this.actorPortPrioritySet ? this.actorPortPriority : parentMessage.actorPortPriority;
int actorPortNum = this.actorPortNumSet ? this.actorPortNum : parentMessage.actorPortNum;
int actorKey = this.actorKeySet ? this.actorKey : parentMessage.actorKey; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 858 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 723 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 858 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 723 |
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( actorSysPriority != other.actorSysPriority)
return false;
if (actorSysMac == null) {
if (other.actorSysMac != null)
return false;
} else if (!actorSysMac.equals(other.actorSysMac))
return false;
if( actorPortPriority != other.actorPortPriority)
return false;
if( actorPortNum != other.actorPortNum)
return false;
if( actorKey != other.actorKey)
return false;
if( partnerSysPriority != other.partnerSysPriority) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsEntryVer13.java | 204 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsEntryVer13.java | 370 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsEntryVer14.java | 204 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 732 |
public OFBsnPortCounterStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 2 bytes
bb.skipBytes(2);
OFPort portNo = OFPort.read4Bytes(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeReplyVer13.java | 349 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeReplyVer14.java | 349 |
OFBsnTimeReplyVer13 other = (OFBsnTimeReplyVer13) obj;
if( xid != other.xid)
return false;
if (timeMs == null) {
if (other.timeMs != null)
return false;
} else if (!timeMs.equals(other.timeMs))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((timeMs == null) ? 0 : timeMs.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsEntryVer13.java | 284 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsEntryVer14.java | 284 |
OFBsnVrfCounterStatsEntryVer13 other = (OFBsnVrfCounterStatsEntryVer13) obj;
if( vrf != other.vrf)
return false;
if (values == null) {
if (other.values != null)
return false;
} else if (!values.equals(other.values))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (vrf ^ (vrf >>> 32));
result = prime * result + ((values == null) ? 0 : values.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFHelloVer13.java | 311 |
| org/projectfloodlight/openflow/protocol/ver14/OFHelloVer14.java | 310 |
OFHelloVer13 other = (OFHelloVer13) obj;
if( xid != other.xid)
return false;
if (elements == null) {
if (other.elements != null)
return false;
} else if (!elements.equals(other.elements))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((elements == null) ? 0 : elements.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplyActionsMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplyActionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteActionsMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteActionsVer13.java | 179 |
throw new OFParseError("Wrong type: Expected=0x7(0x7), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplySetfieldMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplySetfieldVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropMatchVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWildcardsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteSetfieldMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteSetfieldVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplySetfieldMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplySetfieldVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropMatchVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWildcardsVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteSetfieldMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteSetfieldVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0xf(0xf), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U32> oxmIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U32.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsVer13.java | 179 |
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFInstructionId> instructionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropNextTablesMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropNextTablesVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropNextTablesMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropNextTablesVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x3(0x3), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<U8> nextTableIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), U8.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetReplyVer14.java | 448 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncGetRequestVer14.java | 448 |
| org/projectfloodlight/openflow/protocol/ver14/OFAsyncSetVer14.java | 448 |
OFAsyncGetReplyVer14 other = (OFAsyncGetReplyVer14) obj;
if( xid != other.xid)
return false;
if (properties == null) {
if (other.properties != null)
return false;
} else if (!properties.equals(other.properties))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((properties == null) ? 0 : properties.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplyActionsMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplyActionsVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteActionsMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteActionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x7(0x7), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer14.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFInstructionId> instructionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionIdVer14.READER); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/link/OVXLink.java | 290 |
| net/onrc/openvirtex/elements/link/OVXLink.java | 306 |
| net/onrc/openvirtex/elements/link/OVXLink.java | 313 |
| net/onrc/openvirtex/elements/link/OVXLink.java | 320 |
OVXFlowAdd fm = OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(fe.getXid(), fe.getMatch(), U64.of(((OVXFlowTable) this.getSrcPort()
.getParentSwitch().getFlowTable())
.getCookie(fe, true)), fe.getIdleTimeout(), fe.getHardTimeout(), fe.getPriority(), fe.getBufferId(), fe.getOutPort(), fe.getFlags(), fe.getActions());
this.generateLinkFMs(fm, flowId);
}
if (fe.getCommand().equals(OFFlowModCommand.ADD)) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXPacketInVer10.java | 452 |
| net/onrc/openvirtex/messages/ver10/OVXPacketOutVer10.java | 319 |
| net/onrc/openvirtex/messages/ver13/OVXPacketInVer13.java | 514 |
| net/onrc/openvirtex/messages/ver13/OVXPacketOutVer13.java | 299 |
scratch = packetDataBB.get();
scratch = (short) (0xf & scratch);
transportOffset = packetDataBB.position() - 1 + scratch * 4;
// nw tos (dscp)
scratch = packetDataBB.get();
ipDscp=(byte) ((0xfc & scratch) >> 2);
// nw protocol
packetDataBB.position(packetDataBB.position() + 7);
ipProtocol = packetDataBB.get();
// nw src
packetDataBB.position(packetDataBB.position() + 2);
ipv4Src = packetDataBB.getInt();
// nw dst
ipv4Dst = packetDataBB.getInt();
packetDataBB.position(transportOffset);
break;
case 0x0806: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionExperimenterVer10.java | 38 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionExperimenterVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionExperimenterVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionIdExperimenterVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionIdExperimenterVer14.java | 38 |
public OFActionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFActionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
case 0x5c16c7:
// discriminator value 0x5c16c7L=0x5c16c7L for class OFActionBsnVer10
return OFActionBsnVer10.READER.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnInterfaceVer10.java | 259 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnInterfaceVer11.java | 259 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnInterfaceVer12.java | 259 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnInterfaceVer13.java | 259 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnInterfaceVer14.java | 259 |
}
//
@Override
public OFBsnInterface build() {
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
IPv4Address ipv4Addr = this.ipv4AddrSet ? this.ipv4Addr : DEFAULT_IPV4_ADDR;
if(ipv4Addr == null)
throw new NullPointerException("Property ipv4Addr must not be null");
IPv4Address ipv4Netmask = this.ipv4NetmaskSet ? this.ipv4Netmask : DEFAULT_IPV4_NETMASK;
if(ipv4Netmask == null)
throw new NullPointerException("Property ipv4Netmask must not be null");
return new OFBsnInterfaceVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportL2GreVer10.java | 618 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportL2GreVer11.java | 618 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportL2GreVer12.java | 618 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportL2GreVer13.java | 618 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportL2GreVer14.java | 618 |
return new OFBsnVportL2GreVer10(
flags,
portNo,
loopbackPortNo,
localMac,
nhMac,
srcIp,
dstIp,
dscp,
ttl,
vpn,
rateLimit,
ifName
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFBsnVportL2Gre> {
@Override
public OFBsnVportL2Gre readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
// fixed value property type == 0x1
short type = bb.readShort();
if(type != (short) 0x1)
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 60) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 214 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 214 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 214 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 214 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 214 |
}
@Override
public OFBsnVportQInQ build() {
long portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
int ingressTpid = this.ingressTpidSet ? this.ingressTpid : parentMessage.ingressTpid;
int ingressVlanId = this.ingressVlanIdSet ? this.ingressVlanId : parentMessage.ingressVlanId;
int egressTpid = this.egressTpidSet ? this.egressTpid : parentMessage.egressTpid;
int egressVlanId = this.egressVlanIdSet ? this.egressVlanId : parentMessage.egressVlanId;
String ifName = this.ifNameSet ? this.ifName : parentMessage.ifName;
if(ifName == null)
throw new NullPointerException("Property ifName must not be null");
//
return new OFBsnVportQInQVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 275 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 272 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 272 |
throw new UnsupportedOperationException("Property auxiliaryId not supported in version 1.0");
}
@Override
public OFFeaturesReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
DatapathId datapathId = this.datapathIdSet ? this.datapathId : parentMessage.datapathId;
if(datapathId == null)
throw new NullPointerException("Property datapathId must not be null");
long nBuffers = this.nBuffersSet ? this.nBuffers : parentMessage.nBuffers;
short nTables = this.nTablesSet ? this.nTables : parentMessage.nTables;
Set<OFCapabilities> capabilities = this.capabilitiesSet ? this.capabilities : parentMessage.capabilities;
if(capabilities == null)
throw new NullPointerException("Property capabilities must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 128 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 128 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 128 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 134 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 117 |
}
// Accessors for OF message fields
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public U64 getRxPackets() {
return rxPackets;
}
@Override
public U64 getTxPackets() {
return txPackets;
}
@Override
public U64 getRxBytes() {
return rxBytes;
}
@Override
public U64 getTxBytes() {
return txBytes;
}
@Override
public U64 getRxDropped() {
return rxDropped;
}
@Override
public U64 getTxDropped() {
return txDropped;
}
@Override
public U64 getRxErrors() {
return rxErrors;
}
@Override
public U64 getTxErrors() {
return txErrors;
}
@Override
public U64 getRxFrameErr() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 755 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 755 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 940 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 783 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 801 |
StringBuilder b = new StringBuilder("OFFlowStatsEntryVer11(");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("durationSec=").append(durationSec);
b.append(", ");
b.append("durationNsec=").append(durationNsec);
b.append(", ");
b.append("priority=").append(priority);
b.append(", ");
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("hardTimeout=").append(hardTimeout);
b.append(", ");
b.append("cookie=").append(cookie); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 87 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 93 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 93 |
}
@Override
public OFType getType() {
return OFType.PACKET_IN;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBufferId getBufferId() {
return bufferId;
}
@Override
public int getTotalLen() {
return totalLen;
}
@Override
public OFPacketInReason getReason() {
return reason;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public Match getMatch() {
return match;
}
@Override
public byte[] getData() {
return data;
}
@Override
public OFPort getInPort()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property inPort not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 817 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 600 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 817 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 600 |
b.append("convergenceStatus=").append(convergenceStatus);
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("actorSysPriority=").append(actorSysPriority);
b.append(", ");
b.append("actorSysMac=").append(actorSysMac);
b.append(", ");
b.append("actorPortPriority=").append(actorPortPriority);
b.append(", ");
b.append("actorPortNum=").append(actorPortNum);
b.append(", ");
b.append("actorKey=").append(actorKey);
b.append(", "); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 818 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 685 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 818 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 685 |
b.append(", ");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("actorSysPriority=").append(actorSysPriority);
b.append(", ");
b.append("actorSysMac=").append(actorSysMac);
b.append(", ");
b.append("actorPortPriority=").append(actorPortPriority);
b.append(", ");
b.append("actorPortNum=").append(actorPortNum);
b.append(", ");
b.append("actorKey=").append(actorKey);
b.append(", ");
b.append("partnerSysPriority=").append(partnerSysPriority); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionExperimenterVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdExperimenterVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdExperimenterVer14.java | 38 |
public OFInstructionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) {
case 0x5c16c7:
// discriminator value 0x5c16c7L=0x5c16c7L for class OFInstructionBsnVer13
return OFInstructionBsnVer13.READER.readFrom(bb); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXSetConfigVer10.java | 33 |
| net/onrc/openvirtex/messages/ver13/OVXSetConfigVer13.java | 30 |
protected OVXSetConfigVer10(long xid, Set<OFConfigFlags> flags,
int missSendLen) {
super(xid, flags, missSendLen);
// TODO Auto-generated constructor stub
}
private final Logger log = LogManager.getLogger(OVXSetConfig.class
.getName());
/**
* miss_send_len for a full packet (-1).
*/
public static final short MSL_FULL = (short) 0xffff;
/**
* Default miss_send_len when unspecified.
*/
public static final short MSL_DEFAULT = (short) 0x0080;
@Override
public void devirtualize(final OVXSwitch sw) {
sw.setMissSendLen((short)this.getMissSendLen());
this.log.info("Setting miss send length to {} for OVXSwitch {}",
this.getMissSendLen(), sw.getSwitchName());
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnVportQInQVer10.java | 407 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnVportQInQVer11.java | 407 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnVportQInQVer12.java | 407 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVportQInQVer13.java | 407 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVportQInQVer14.java | 407 |
public void funnel(OFBsnVportQInQVer10 message, PrimitiveSink sink) {
// fixed value property type = 0x0
sink.putShort((short) 0x0);
// fixed value property length = 32
sink.putShort((short) 0x20);
sink.putLong(message.portNo);
sink.putInt(message.ingressTpid);
sink.putInt(message.ingressVlanId);
sink.putInt(message.egressTpid);
sink.putInt(message.egressVlanId);
sink.putString(message.ifName);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnVportQInQVer10> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 643 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 643 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 643 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 798 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 666 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 415 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 681 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 415 |
public OFFlowStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
TableId tableId = TableId.readByte(bb);
// pad: 1 bytes
bb.skipBytes(1); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPacketInVer10.java | 481 |
| org/projectfloodlight/openflow/protocol/ver10/OFPacketOutVer10.java | 357 |
| org/projectfloodlight/openflow/protocol/ver11/OFPacketOutVer11.java | 357 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 503 |
| org/projectfloodlight/openflow/protocol/ver12/OFPacketOutVer12.java | 357 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 525 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketOutVer13.java | 357 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 525 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketOutVer14.java | 357 |
throw new OFParseError("Wrong type: Expected=OFType.PACKET_IN(10), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
OFBufferId bufferId = OFBufferId.of(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 463 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 463 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 463 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 187 |
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : parentMessage.rxFrameErr;
if(rxFrameErr == null)
throw new NullPointerException("Property rxFrameErr must not be null");
U64 rxOverErr = this.rxOverErrSet ? this.rxOverErr : parentMessage.rxOverErr;
if(rxOverErr == null)
throw new NullPointerException("Property rxOverErr must not be null");
U64 rxCrcErr = this.rxCrcErrSet ? this.rxCrcErr : parentMessage.rxCrcErr;
if(rxCrcErr == null)
throw new NullPointerException("Property rxCrcErr must not be null");
U64 collisions = this.collisionsSet ? this.collisions : parentMessage.collisions;
if(collisions == null)
throw new NullPointerException("Property collisions must not be null");
//
return new OFPortStatsEntryVer10( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketVer11.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketVer14.java | 170 |
}
@Override
public OFBucket build() {
int weight = this.weightSet ? this.weight : parentMessage.weight;
OFPort watchPort = this.watchPortSet ? this.watchPort : parentMessage.watchPort;
if(watchPort == null)
throw new NullPointerException("Property watchPort must not be null");
OFGroup watchGroup = this.watchGroupSet ? this.watchGroup : parentMessage.watchGroup;
if(watchGroup == null)
throw new NullPointerException("Property watchGroup must not be null");
List<OFAction> actions = this.actionsSet ? this.actions : parentMessage.actions;
if(actions == null)
throw new NullPointerException("Property actions must not be null");
//
return new OFBucketVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 757 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 757 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 757 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 757 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 757 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 757 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 757 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 757 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 757 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 757 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 627 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 801 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 797 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 796 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 797 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 795 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 627 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 772 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 772 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 772 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 772 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 772 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 627 |
throw new OFParseError("Wrong type: Expected=OFType.FLOW_MOD(14), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
U64 cookie = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 873 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 1009 |
result = prime * (int) (applyActions ^ (applyActions >>> 32));
result = prime * (int) (config ^ (config >>> 32));
result = prime * (int) (maxEntries ^ (maxEntries >>> 32));
result = prime * (int) (activeCount ^ (activeCount >>> 32));
result = prime * result + ((lookupCount == null) ? 0 : lookupCount.hashCode());
result = prime * result + ((matchedCount == null) ? 0 : matchedCount.hashCode());
return result;
}
} | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 220 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 220 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 220 |
throw new UnsupportedOperationException("OFMatchV3Ver12 does not support matching on field " + field.getName());
OFOxm<?> oxm = this.oxmList.get(field);
return oxm != null && oxm.isMasked();
}
private class MatchFieldIterator extends AbstractIterator<MatchField<?>> {
private Iterator<OFOxm<?>> oxmIterator;
MatchFieldIterator() {
oxmIterator = oxmList.iterator();
}
@Override
protected MatchField<?> computeNext() {
while(oxmIterator.hasNext()) {
OFOxm<?> oxm = oxmIterator.next();
if(oxm.getMatchField().arePrerequisitesOK(OFMatchV3Ver12.this)) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketInVer12.java | 453 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInVer13.java | 471 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInVer14.java | 471 |
}
//
@Override
public OFPacketIn build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID;
OFBufferId bufferId = this.bufferIdSet ? this.bufferId : DEFAULT_BUFFER_ID;
if(bufferId == null)
throw new NullPointerException("Property bufferId must not be null");
int totalLen = this.totalLenSet ? this.totalLen : DEFAULT_TOTAL_LEN;
if(!this.reasonSet)
throw new IllegalStateException("Property reason doesn't have default value -- must be set");
if(reason == null)
throw new NullPointerException("Property reason must not be null");
TableId tableId = this.tableIdSet ? this.tableId : DEFAULT_TABLE_ID;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDeleteVer13.java | 361 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDeleteVer14.java | 361 |
bb.writeByte((byte) 0x4);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x2fL
bb.writeInt(0x2f);
message.tableId.write2Bytes(bb);
ChannelUtils.writeList(bb, message.key);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnGentableEntryDeleteVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 249 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 204 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 249 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 204 |
public OFBsnGentableEntryDescStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
int start = bb.readerIndex();
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
int keyLength = U16.f(bb.readShort()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 723 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 631 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 723 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 631 |
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if( actorSysPriority != other.actorSysPriority)
return false;
if (actorSysMac == null) {
if (other.actorSysMac != null)
return false;
} else if (!actorSysMac.equals(other.actorSysMac))
return false;
if( actorPortPriority != other.actorPortPriority)
return false;
if( actorPortNum != other.actorPortNum)
return false;
if( actorKey != other.actorKey)
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFRequestforwardVer14.java | 258 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleStatusVer14.java | 345 |
throw new OFParseError("Wrong type: Expected=OFType.REQUESTFORWARD(32), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
long role = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionOutputVer10.java | 96 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionOutputVer11.java | 96 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionOutputVer12.java | 96 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionOutputVer13.java | 96 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionOutputVer14.java | 96 |
BuilderWithParent(OFActionOutputVer10 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFActionType getType() {
return OFActionType.OUTPUT;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFActionOutput.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public int getMaxLen() {
return maxLen;
}
@Override
public OFActionOutput.Builder setMaxLen(int maxLen) {
this.maxLen = maxLen;
this.maxLenSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsEntryVer10.java | 770 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsEntryVer11.java | 770 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsEntryVer12.java | 770 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 800 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsEntryVer14.java | 748 |
bb.skipBytes(6);
U64 rxPackets = U64.ofRaw(bb.readLong());
U64 txPackets = U64.ofRaw(bb.readLong());
U64 rxBytes = U64.ofRaw(bb.readLong());
U64 txBytes = U64.ofRaw(bb.readLong());
U64 rxDropped = U64.ofRaw(bb.readLong());
U64 txDropped = U64.ofRaw(bb.readLong());
U64 rxErrors = U64.ofRaw(bb.readLong());
U64 txErrors = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 103 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 160 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 160 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 160 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueueGetConfigRequestVer10.java | 160 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigRequestVer11.java | 103 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigRequestVer12.java | 103 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigRequestVer13.java | 103 |
}
@Override
public OFType getType() {
return OFType.QUEUE_GET_CONFIG_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFQueueGetConfigRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public OFPort getPort() {
return port;
}
@Override
public OFQueueGetConfigRequest.Builder setPort(OFPort port) {
this.port = port;
this.portSet = true;
return this;
}
//
@Override
public OFQueueGetConfigRequest build() {
long xid = this.xidSet ? this.xid : DEFAULT_XID; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 691 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 799 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 911 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 621 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 621 |
b.append("maxEntries=").append(maxEntries);
b.append(", ");
b.append("activeCount=").append(activeCount);
b.append(", ");
b.append("lookupCount=").append(lookupCount);
b.append(", ");
b.append("matchedCount=").append(matchedCount);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 42 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 43 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 43 |
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer11.MATCH_WILDCARD_ALL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 736 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 757 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 757 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 757 |
b.append("idleTimeout=").append(idleTimeout);
b.append(", ");
b.append("packetCount=").append(packetCount);
b.append(", ");
b.append("byteCount=").append(byteCount);
b.append(", ");
b.append("match=").append(match);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 368 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 368 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 379 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 386 |
}
@Override
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionWriteMetadataVer11.java | 99 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionWriteMetadataVer12.java | 99 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionWriteMetadataVer13.java | 99 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionWriteMetadataVer14.java | 99 |
BuilderWithParent(OFInstructionWriteMetadataVer11 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public OFInstructionType getType() {
return OFInstructionType.WRITE_METADATA;
}
@Override
public U64 getMetadata() {
return metadata;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadata(U64 metadata) {
this.metadata = metadata;
this.metadataSet = true;
return this;
}
@Override
public U64 getMetadataMask() {
return metadataMask;
}
@Override
public OFInstructionWriteMetadata.Builder setMetadataMask(U64 metadataMask) {
this.metadataMask = metadataMask;
this.metadataMaskSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBadActionCodeSerializerVer12.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFBadActionCodeSerializerVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver14/OFBadActionCodeSerializerVer14.java | 100 |
throw new IllegalArgumentException("Illegal wire value for type OFBadActionCode in version 1.2: " + val);
}
}
public static short toWireValue(OFBadActionCode e) {
switch(e) {
case BAD_TYPE:
return BAD_TYPE_VAL;
case BAD_LEN:
return BAD_LEN_VAL;
case BAD_EXPERIMENTER:
return BAD_EXPERIMENTER_VAL;
case BAD_EXPERIMENTER_TYPE:
return BAD_EXPERIMENTER_TYPE_VAL;
case BAD_OUT_PORT:
return BAD_OUT_PORT_VAL;
case BAD_ARGUMENT:
return BAD_ARGUMENT_VAL;
case EPERM:
return EPERM_VAL;
case TOO_MANY:
return TOO_MANY_VAL;
case BAD_QUEUE:
return BAD_QUEUE_VAL;
case BAD_OUT_GROUP:
return BAD_OUT_GROUP_VAL;
case MATCH_INCONSISTENT:
return MATCH_INCONSISTENT_VAL;
case UNSUPPORTED_ORDER:
return UNSUPPORTED_ORDER_VAL;
case BAD_TAG:
return BAD_TAG_VAL;
case BAD_SET_TYPE:
return BAD_SET_TYPE_VAL;
case BAD_SET_LEN:
return BAD_SET_LEN_VAL;
case BAD_SET_ARGUMENT:
return BAD_SET_ARGUMENT_VAL;
default:
throw new IllegalArgumentException("Illegal enum value for type OFBadActionCode in version 1.2: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 433 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsRequestVer13.java | 513 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsRequestVer13.java | 513 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 433 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsRequestVer14.java | 513 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsRequestVer14.java | 513 |
b.append("xid=").append(xid);
b.append(", ");
b.append("tableId=").append(tableId);
b.append(", ");
b.append("checksum=").append(checksum);
b.append(", ");
b.append("checksumMask=").append(checksumMask);
b.append(")");
return b.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescPropOpticalVer13.java | 1028 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsEntryVer13.java | 896 |
} else if (!inOperCapability.equals(other.inOperCapability))
return false;
if (outAdminStatus == null) {
if (other.outAdminStatus != null)
return false;
} else if (!outAdminStatus.equals(other.outAdminStatus))
return false;
if (outOperStatus == null) {
if (other.outOperStatus != null)
return false;
} else if (!outOperStatus.equals(other.outOperStatus))
return false;
if (outOperCapability == null) {
if (other.outOperCapability != null)
return false;
} else if (!outOperCapability.equals(other.outOperCapability))
return false;
if (inportPower == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 39 |
final static int LENGTH = 32;
private final static long DEFAULT_XID = 0x0L;
private final static DatapathId DEFAULT_DATAPATH_ID = DatapathId.NONE;
private final static long DEFAULT_N_BUFFERS = 0x0L;
private final static short DEFAULT_N_TABLES = (short) 0x0;
private final static OFAuxId DEFAULT_AUXILIARY_ID = OFAuxId.MAIN;
private final static Set<OFCapabilities> DEFAULT_CAPABILITIES = ImmutableSet.<OFCapabilities>of();
private final static long DEFAULT_RESERVED = 0x0L;
// OF message fields
private final long xid;
private final DatapathId datapathId;
private final long nBuffers;
private final short nTables;
private final OFAuxId auxiliaryId;
private final Set<OFCapabilities> capabilities;
private final long reserved;
//
// Immutable default instance
final static OFFeaturesReplyVer13 DEFAULT = new OFFeaturesReplyVer13( | |
| File | Line |
|---|---|
| net/onrc/openvirtex/packet/TCP.java | 224 |
| net/onrc/openvirtex/packet/UDP.java | 156 |
((IPv4) this.parent).setProtocol(IPv4.PROTOCOL_TCP);
}
// compute checksum if needed
if (this.checksum == 0) {
bb.rewind();
int accumulation = 0;
// compute pseudo header mac
if (this.parent != null && this.parent instanceof IPv4) {
final IPv4 ipv4 = (IPv4) this.parent;
accumulation += (ipv4.getSourceAddress() >> 16 & 0xffff)
+ (ipv4.getSourceAddress() & 0xffff);
accumulation += (ipv4.getDestinationAddress() >> 16 & 0xffff)
+ (ipv4.getDestinationAddress() & 0xffff);
accumulation += ipv4.getProtocol() & 0xff;
accumulation += length & 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 439 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 439 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupFeaturesStatsReplyVer12.java | 615 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupFeaturesStatsReplyVer13.java | 615 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupFeaturesStatsReplyVer14.java | 615 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(16), got="+type);
int length = U16.f(bb.readShort());
if(length != 56)
throw new OFParseError("Wrong length: Expected=56(56), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 2
short statsType = bb.readShort();
if(statsType != (short) 0x2) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduRxReplyVer10.java | 70 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduRxReplyVer11.java | 70 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduRxReplyVer12.java | 70 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduRxReplyVer13.java | 70 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduRxReplyVer14.java | 70 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x22L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public short getSlotNum() {
return slotNum;
}
public OFBsnPduRxReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnPduRxReply.Builder {
final OFBsnPduRxReplyVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnPduTxReplyVer10.java | 70 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnPduTxReplyVer11.java | 70 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnPduTxReplyVer12.java | 70 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPduTxReplyVer13.java | 70 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPduTxReplyVer14.java | 70 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x20L;
}
@Override
public long getStatus() {
return status;
}
@Override
public OFPort getPortNo() {
return portNo;
}
@Override
public short getSlotNum() {
return slotNum;
}
public OFBsnPduTxReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnPduTxReply.Builder {
final OFBsnPduTxReplyVer10 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 716 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 715 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 715 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 715 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 715 |
throw new OFParseError("Wrong command: Expected=OFFlowModCommand.ADD(0), got="+command);
int idleTimeout = U16.f(bb.readShort());
int hardTimeout = U16.f(bb.readShort());
int priority = U16.f(bb.readShort());
OFBufferId bufferId = OFBufferId.of(bb.readInt());
OFPort outPort = OFPort.read2Bytes(bb);
Set<OFFlowModFlags> flags = OFFlowModFlagsSerializerVer10.readFrom(bb);
List<OFAction> actions = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionVer10.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsEntryVer10.java | 809 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 839 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 861 |
if( hardTimeout != other.hardTimeout)
return false;
if (cookie == null) {
if (other.cookie != null)
return false;
} else if (!cookie.equals(other.cookie))
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (actions == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 702 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 754 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescStatsEntryVer13.java | 486 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 754 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 501 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 649 |
OFPortDescVer10 other = (OFPortDescVer10) obj;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (config == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionTypeSerializerVer11.java | 47 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionTypeSerializerVer12.java | 35 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionTypeSerializerVer13.java | 35 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionTypeSerializerVer14.java | 35 |
public final static short SET_MPLS_TTL_VAL = (short) 0xf;
public final static short DEC_MPLS_TTL_VAL = (short) 0x10;
public final static short PUSH_VLAN_VAL = (short) 0x11;
public final static short POP_VLAN_VAL = (short) 0x12;
public final static short PUSH_MPLS_VAL = (short) 0x13;
public final static short POP_MPLS_VAL = (short) 0x14;
public final static short SET_QUEUE_VAL = (short) 0x15;
public final static short GROUP_VAL = (short) 0x16;
public final static short SET_NW_TTL_VAL = (short) 0x17;
public final static short DEC_NW_TTL_VAL = (short) 0x18;
public final static short EXPERIMENTER_VAL = (short) 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBucketCounterVer11.java | 98 |
| org/projectfloodlight/openflow/protocol/ver11/OFBucketCounterVer11.java | 152 |
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFBucketCounter.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFBucketCounter.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFBucketCounter build() {
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsEntryVer11.java | 385 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsEntryVer12.java | 385 |
return new OFQueueStatsEntryVer11(
portNo,
queueId,
txBytes,
txPackets,
txErrors
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFQueueStatsEntry> {
@Override
public OFQueueStatsEntry readFrom(ChannelBuffer bb) throws OFParseError {
OFPort portNo = OFPort.read4Bytes(bb);
long queueId = U32.f(bb.readInt());
U64 txBytes = U64.ofRaw(bb.readLong());
U64 txPackets = U64.ofRaw(bb.readLong());
U64 txErrors = U64.ofRaw(bb.readLong()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBucketCounterVer12.java | 98 |
| org/projectfloodlight/openflow/protocol/ver12/OFBucketCounterVer12.java | 152 |
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFBucketCounter.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFBucketCounter.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFBucketCounter build() {
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFRoleReplyVer12.java | 362 |
| org/projectfloodlight/openflow/protocol/ver12/OFRoleRequestVer12.java | 362 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnRoleStatusVer13.java | 464 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleReplyVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver13/OFRoleRequestVer13.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleReplyVer14.java | 362 |
| org/projectfloodlight/openflow/protocol/ver14/OFRoleRequestVer14.java | 362 |
} else if (!role.equals(other.role))
return false;
if (generationId == null) {
if (other.generationId != null)
return false;
} else if (!generationId.equals(other.generationId))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((role == null) ? 0 : role.hashCode());
result = prime * result + ((generationId == null) ? 0 : generationId.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 252 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 252 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 252 |
public OFAsyncGetReply build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
long packetInMaskEqualMaster = this.packetInMaskEqualMasterSet ? this.packetInMaskEqualMaster : parentMessage.packetInMaskEqualMaster;
long packetInMaskSlave = this.packetInMaskSlaveSet ? this.packetInMaskSlave : parentMessage.packetInMaskSlave;
long portStatusMaskEqualMaster = this.portStatusMaskEqualMasterSet ? this.portStatusMaskEqualMaster : parentMessage.portStatusMaskEqualMaster;
long portStatusMaskSlave = this.portStatusMaskSlaveSet ? this.portStatusMaskSlave : parentMessage.portStatusMaskSlave;
long flowRemovedMaskEqualMaster = this.flowRemovedMaskEqualMasterSet ? this.flowRemovedMaskEqualMaster : parentMessage.flowRemovedMaskEqualMaster;
long flowRemovedMaskSlave = this.flowRemovedMaskSlaveSet ? this.flowRemovedMaskSlave : parentMessage.flowRemovedMaskSlave;
//
return new OFAsyncGetReplyVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsEntryVer13.java | 98 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsEntryVer13.java | 152 |
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFBsnDebugCounterStatsEntry.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnDebugCounterStatsEntry build() {
U64 counterId = this.counterIdSet ? this.counterId : parentMessage.counterId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 65 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 65 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x31L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public long getDeletedCount() {
return deletedCount;
}
@Override
public long getErrorCount() {
return errorCount;
}
public OFBsnGentableClearReply.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableClearReply.Builder {
final OFBsnGentableClearReplyVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearRequestVer13.java | 71 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearRequestVer14.java | 71 |
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x30L;
}
@Override
public GenTableId getTableId() {
return tableId;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public U128 getChecksumMask() {
return checksumMask;
}
public OFBsnGentableClearRequest.Builder createBuilder() {
return new BuilderWithParent(this);
}
static class BuilderWithParent implements OFBsnGentableClearRequest.Builder {
final OFBsnGentableClearRequestVer13 parentMessage; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsEntryVer13.java | 96 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsEntryVer14.java | 96 |
BuilderWithParent(OFBsnGentableEntryStatsEntryVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public List<OFBsnTlv> getStats() {
return stats;
}
@Override
public OFBsnGentableEntryStatsEntry.Builder setStats(List<OFBsnTlv> stats) {
this.stats = stats;
this.statsSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsEntryVer13.java | 98 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsEntryVer13.java | 152 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableChecksumStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U64 getChecksum() {
return checksum;
}
@Override
public OFBsnTableChecksumStatsEntry.Builder setChecksum(U64 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBsnTableChecksumStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBucketCounterVer13.java | 98 |
| org/projectfloodlight/openflow/protocol/ver13/OFBucketCounterVer13.java | 152 |
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFBucketCounter.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFBucketCounter.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFBucketCounter build() {
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsRequestVer13.java | 310 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterFeaturesStatsReplyVer13.java | 276 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | 276 |
throw new OFParseError("Wrong type: Expected=OFType.STATS_REQUEST(18), got="+type);
int length = U16.f(bb.readShort());
if(length != 32)
throw new OFParseError("Wrong length: Expected=32(32), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
// fixed value property statsType == 65535
short statsType = bb.readShort();
if(statsType != (short) 0xffff) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 39 |
final static int MINIMUM_LENGTH = 40;
private final static OFGroup DEFAULT_GROUP_ID = OFGroup.ALL;
private final static long DEFAULT_REF_COUNT = 0x0L;
private final static U64 DEFAULT_PACKET_COUNT = U64.ZERO;
private final static U64 DEFAULT_BYTE_COUNT = U64.ZERO;
private final static long DEFAULT_DURATION_SEC = 0x0L;
private final static long DEFAULT_DURATION_NSEC = 0x0L;
private final static List<OFBucketCounter> DEFAULT_BUCKET_STATS = ImmutableList.<OFBucketCounter>of();
// OF message fields
private final OFGroup group;
private final long refCount;
private final U64 packetCount;
private final U64 byteCount;
private final long durationSec;
private final long durationNsec;
private final List<OFBucketCounter> bucketStats;
//
// Immutable default instance
final static OFGroupStatsEntryVer13 DEFAULT = new OFGroupStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandStatsVer13.java | 98 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandStatsVer13.java | 152 |
@Override
public U64 getPacketBandCount() {
return packetBandCount;
}
@Override
public OFMeterBandStats.Builder setPacketBandCount(U64 packetBandCount) {
this.packetBandCount = packetBandCount;
this.packetBandCountSet = true;
return this;
}
@Override
public U64 getByteBandCount() {
return byteBandCount;
}
@Override
public OFMeterBandStats.Builder setByteBandCount(U64 byteBandCount) {
this.byteBandCount = byteBandCount;
this.byteBandCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFMeterBandStats build() {
U64 packetBandCount = this.packetBandCountSet ? this.packetBandCount : parentMessage.packetBandCount; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPacketInReasonSerializerVer13.java | 74 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketInReasonSerializerVer14.java | 83 |
case BSN_NEW_HOST_VAL:
return OFPacketInReason.BSN_NEW_HOST;
case BSN_STATION_MOVE_VAL:
return OFPacketInReason.BSN_STATION_MOVE;
case BSN_BAD_VLAN_VAL:
return OFPacketInReason.BSN_BAD_VLAN;
case BSN_DESTINATION_LOOKUP_FAILURE_VAL:
return OFPacketInReason.BSN_DESTINATION_LOOKUP_FAILURE;
case BSN_NO_ROUTE_VAL:
return OFPacketInReason.BSN_NO_ROUTE;
case BSN_ICMP_ECHO_REQUEST_VAL:
return OFPacketInReason.BSN_ICMP_ECHO_REQUEST;
case BSN_DEST_NETWORK_UNREACHABLE_VAL:
return OFPacketInReason.BSN_DEST_NETWORK_UNREACHABLE;
case BSN_DEST_HOST_UNREACHABLE_VAL:
return OFPacketInReason.BSN_DEST_HOST_UNREACHABLE;
case BSN_DEST_PORT_UNREACHABLE_VAL:
return OFPacketInReason.BSN_DEST_PORT_UNREACHABLE;
case BSN_FRAGMENTATION_REQUIRED_VAL:
return OFPacketInReason.BSN_FRAGMENTATION_REQUIRED;
case BSN_ARP_VAL:
return OFPacketInReason.BSN_ARP;
case BSN_DHCP_VAL:
return OFPacketInReason.BSN_DHCP;
case BSN_DEBUG_VAL:
return OFPacketInReason.BSN_DEBUG;
case BSN_PACKET_OF_DEATH_VAL:
return OFPacketInReason.BSN_PACKET_OF_DEATH;
default:
throw new IllegalArgumentException("Illegal wire value for type OFPacketInReason in version 1.3: " + val); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsEntryVer13.java | 477 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropEthernetVer14.java | 187 |
U64 rxFrameErr = this.rxFrameErrSet ? this.rxFrameErr : parentMessage.rxFrameErr;
if(rxFrameErr == null)
throw new NullPointerException("Property rxFrameErr must not be null");
U64 rxOverErr = this.rxOverErrSet ? this.rxOverErr : parentMessage.rxOverErr;
if(rxOverErr == null)
throw new NullPointerException("Property rxOverErr must not be null");
U64 rxCrcErr = this.rxCrcErrSet ? this.rxCrcErr : parentMessage.rxCrcErr;
if(rxCrcErr == null)
throw new NullPointerException("Property rxCrcErr must not be null");
U64 collisions = this.collisionsSet ? this.collisions : parentMessage.collisions;
if(collisions == null)
throw new NullPointerException("Property collisions must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplyActionsMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplyActionsVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteActionsMissVer14.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropWriteActionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x7(0x7), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropApplyActionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteActionsMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropWriteActionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropApplyActionsMissVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x6(0x6), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFActionId> actionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFActionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsMissVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFInstructionId> instructionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropInstructionsVer13.java | 179 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropInstructionsMissVer14.java | 179 |
throw new OFParseError("Wrong type: Expected=0x0(0x0), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
List<OFInstructionId> instructionIds = ChannelUtils.readList(bb, length - (bb.readerIndex() - start), OFInstructionIdVer13.READER); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 39 |
final static int MINIMUM_LENGTH = 64;
private final static TableId DEFAULT_TABLE_ID = TableId.ALL;
private final static String DEFAULT_NAME = "";
private final static U64 DEFAULT_METADATA_MATCH = U64.ZERO;
private final static U64 DEFAULT_METADATA_WRITE = U64.ZERO;
private final static long DEFAULT_CONFIG = 0x0L;
private final static long DEFAULT_MAX_ENTRIES = 0x0L;
private final static List<OFTableFeatureProp> DEFAULT_PROPERTIES = ImmutableList.<OFTableFeatureProp>of();
// OF message fields
private final TableId tableId;
private final String name;
private final U64 metadataMatch;
private final U64 metadataWrite;
private final long config;
private final long maxEntries;
private final List<OFTableFeatureProp> properties;
//
// Immutable default instance
final static OFTableFeaturesVer13 DEFAULT = new OFTableFeaturesVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsEntryVer14.java | 98 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsEntryVer14.java | 152 |
@Override
public U64 getCounterId() {
return counterId;
}
@Override
public OFBsnDebugCounterStatsEntry.Builder setCounterId(U64 counterId) {
this.counterId = counterId;
this.counterIdSet = true;
return this;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFBsnDebugCounterStatsEntry.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnDebugCounterStatsEntry build() {
U64 counterId = this.counterIdSet ? this.counterId : parentMessage.counterId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsEntryVer14.java | 98 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsEntryVer14.java | 152 |
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFBsnTableChecksumStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public U64 getChecksum() {
return checksum;
}
@Override
public OFBsnTableChecksumStatsEntry.Builder setChecksum(U64 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBsnTableChecksumStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBucketCounterVer14.java | 98 |
| org/projectfloodlight/openflow/protocol/ver14/OFBucketCounterVer14.java | 152 |
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public OFBucketCounter.Builder setPacketCount(U64 packetCount) {
this.packetCount = packetCount;
this.packetCountSet = true;
return this;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public OFBucketCounter.Builder setByteCount(U64 byteCount) {
this.byteCount = byteCount;
this.byteCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFBucketCounter build() {
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandStatsVer14.java | 98 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandStatsVer14.java | 152 |
@Override
public U64 getPacketBandCount() {
return packetBandCount;
}
@Override
public OFMeterBandStats.Builder setPacketBandCount(U64 packetBandCount) {
this.packetBandCount = packetBandCount;
this.packetBandCountSet = true;
return this;
}
@Override
public U64 getByteBandCount() {
return byteBandCount;
}
@Override
public OFMeterBandStats.Builder setByteBandCount(U64 byteBandCount) {
this.byteBandCount = byteBandCount;
this.byteBandCountSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFMeterBandStats build() {
U64 packetBandCount = this.packetBandCountSet ? this.packetBandCount : parentMessage.packetBandCount; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 118 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 886 |
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowAdd(((OFFlowAdd)message).getXid(), ((OFFlowAdd)message).getMatch(),((OFFlowAdd)message).getCookie(), ((OFFlowAdd)message).getIdleTimeout(), ((OFFlowAdd)message).getHardTimeout(), ((OFFlowAdd)message).getPriority(), ((OFFlowAdd)message).getBufferId(), ((OFFlowAdd)message).getOutPort(), ((OFFlowAdd)message).getFlags(), ((OFFlowAdd)message).getActions());
else if(of_message_type.equals("OFFlowDeleteVer10")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 120 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 888 |
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowDelete(((OFFlowDelete)message).getXid(), ((OFFlowDelete)message).getMatch(),((OFFlowDelete)message).getCookie(), ((OFFlowDelete)message).getIdleTimeout(), ((OFFlowDelete)message).getHardTimeout(), ((OFFlowDelete)message).getPriority(), ((OFFlowDelete)message).getBufferId(), ((OFFlowDelete)message).getOutPort(), ((OFFlowDelete)message).getFlags(), ((OFFlowDelete)message).getActions());
else if(of_message_type.equals("OFFlowDeleteStrictVer10")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 122 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 890 |
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowDeleteStrict(((OFFlowDeleteStrict)message).getXid(), ((OFFlowDeleteStrict)message).getMatch(),((OFFlowDeleteStrict)message).getCookie(), ((OFFlowDeleteStrict)message).getIdleTimeout(), ((OFFlowDeleteStrict)message).getHardTimeout(), ((OFFlowDeleteStrict)message).getPriority(), ((OFFlowDeleteStrict)message).getBufferId(), ((OFFlowDeleteStrict)message).getOutPort(), ((OFFlowDeleteStrict)message).getFlags(), ((OFFlowDeleteStrict)message).getActions());
else if(of_message_type.equals("OFFlowModifyVer10")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 124 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 892 |
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowModify(((OFFlowModify)message).getXid(), ((OFFlowModify)message).getMatch(),((OFFlowModify)message).getCookie(), ((OFFlowModify)message).getIdleTimeout(), ((OFFlowModify)message).getHardTimeout(), ((OFFlowModify)message).getPriority(), ((OFFlowModify)message).getBufferId(), ((OFFlowModify)message).getOutPort(), ((OFFlowModify)message).getFlags(), ((OFFlowModify)message).getActions());
else if(of_message_type.equals("OFFlowModifyStrictVer10")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 126 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 894 |
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowModifyStrict(((OFFlowModifyStrict)message).getXid(), ((OFFlowModifyStrict)message).getMatch(),((OFFlowModifyStrict)message).getCookie(), ((OFFlowModifyStrict)message).getIdleTimeout(), ((OFFlowModifyStrict)message).getHardTimeout(), ((OFFlowModifyStrict)message).getPriority(), ((OFFlowModifyStrict)message).getBufferId(), ((OFFlowModifyStrict)message).getOutPort(), ((OFFlowModifyStrict)message).getFlags(), ((OFFlowModifyStrict)message).getActions());
else if(of_message_type.equals("OFFlowRemovedVer10")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 128 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 896 |
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowRemoved(((OFFlowRemoved)message).getXid(),((OFFlowRemoved)message).getMatch(), ((OFFlowRemoved)message).getCookie(), ((OFFlowRemoved)message).getPriority(), ((OFFlowRemoved)message).getReason(), ((OFFlowRemoved)message).getDurationSec(), ((OFFlowRemoved)message).getDurationNsec(), ((OFFlowRemoved)message).getIdleTimeout(), ((OFFlowRemoved)message).getPacketCount(), ((OFFlowRemoved)message).getByteCount());
else if(of_message_type.equals("OFGetConfigReplyVer10")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver10/OVXFlowAddVer10.java | 277 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteStrictVer10.java | 199 |
| net/onrc/openvirtex/messages/ver10/OVXFlowDeleteVer10.java | 199 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyStrictVer10.java | 199 |
| net/onrc/openvirtex/messages/ver10/OVXFlowModifyVer10.java | 199 |
}
private void prepAndSendSouth(OVXPort inPort, boolean pflag) {
if (!inPort.isActive()) {
log.warn("Virtual network {}: port {} on switch {} is down.",
sw.getTenantId(), inPort.getPortNo(),
sw.getSwitchName());
return;
}
this.match=((OFMatchV1)this.getMatch()).createBuilder().setInPort(OFPort.ofShort(inPort.getPhysicalPortNumber())).build();
OVXMessageUtil.translateXid(this, inPort);
try {
if (inPort.isEdge()) { | |
| File | Line |
|---|---|
| net/onrc/openvirtex/messages/ver13/OVXFlowDeleteVer13.java | 253 |
| net/onrc/openvirtex/messages/ver13/OVXFlowModifyVer13.java | 255 |
if (this.getMatch().get(MatchField.IPV4_DST) != null) {
OFOxmIpv4Dst oxmIpv4Dst = new OFOxmIpv4DstVer13(IPv4Address.of(IPMapper.getPhysicalIp(sw.getTenantId(),
((OFMatchV3)this.match).get(MatchField.IPV4_DST).getInt())));
final OVXActionSetField dstAct = OVXFactoryInst.myOVXFactory.buildOVXActionSetField(oxmIpv4Dst);
this.approvedActions.add(0, dstAct);
}
}
/**
* @param flagbit
* The OFFlowMod flag
* @return true if the flag is set
*/
public boolean hasFlag(short flagbit) {
return (this.flags.contains(OFFlowModFlagsSerializerVer13.ofWireValue(flagbit)));
}
public OVXFlowMod clone() {
OVXFlowMod flowMod = null; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/match/Match.java | 48 |
| org/projectfloodlight/openflow/protocol/match/Match.java | 154 |
public interface Match extends OFObject {
/**
* Returns a value for the given field if:
* <ul>
* <li>Field is supported
* <li>Field is not fully wildcarded
* <li>Prerequisites are ok
* </ul>
* If one of the above conditions does not hold, returns null. Value is returned masked if partially wildcarded.
*
* @param field Match field to retrieve
* @return Value of match field (may be masked), or <code>null</code> if field is one of the conditions above does not hold.
* @throws UnsupportedOperationException If field is not supported.
*/
public <F extends OFValueType<F>> F get(MatchField<F> field) throws UnsupportedOperationException;
/**
* Returns the masked value for the given field from this match, along with the mask itself.
* Prerequisite: field is partially masked.
* If prerequisite is not met, a <code>null</code> is returned.
*
* @param field Match field to retrieve.
* @return Masked value of match field or null if no mask is set.
* @throws UnsupportedOperationException If field is not supported.
*/
public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field) throws UnsupportedOperationException;
/**
* Returns true if and only if this match object supports the given match field.
*
* @param field Match field
* @return true if field is supported, false otherwise.
*/
public boolean supports(MatchField<?> field);
/**
* Returns true if and only if this match object supports partially bitmasking of the given field.
* (note: not all possible values of this bitmask have to be acceptable)
*
* @param field Match field.
* @return true if field can be partially masked, false otherwise.
* @throws UnsupportedOperationException If field is not supported.
*/
public boolean supportsMasked(MatchField<?> field) throws UnsupportedOperationException;
/**
* Returns true if and only if this field is currently specified in the match with an exact value and
* no mask. I.e., the specified match will only select packets that match the exact value of getValue(field).
*
* @param field Match field.
* @return true if field has a specific exact value, false if not.
* @throws UnsupportedOperationException If field is not supported.
*/
public boolean isExact(MatchField<?> field) throws UnsupportedOperationException;
/**
* True if and only if this field is currently logically unspecified in the match, i.e, the
* value returned by getValue(f) has no impact on whether a packet will be selected
* by the match or not.
*
* @param field Match field.
* @return true if field is fully wildcarded, false if not.
* @throws UnsupportedOperationException If field is not supported.
*/
public boolean isFullyWildcarded(MatchField<?> field) throws UnsupportedOperationException;
/**
* True if and only if this field is currently partially specified in the match, i.e, the
* match will only select packets that match (p.value & getMask(field)) == getValue(field),
* and getMask(field) != 0.
*
* @param field Match field.
* @return true if field is partially masked, false if not.
* @throws UnsupportedOperationException If field is not supported.
*/
public boolean isPartiallyMasked(MatchField<?> field) throws UnsupportedOperationException;
/**
* Get an Iterable over the match fields that have been specified for the
* match. This includes the match fields that are exact or masked match
* (but not fully wildcarded).
*
* @return
*/
public Iterable<MatchField<?>> getMatchFields(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnChecksumVer10.java | 100 |
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnChecksumVer10.java | 152 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFActionBsnChecksum.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFActionBsnChecksum build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 97 |
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 147 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public long getDst() {
return dst;
}
@Override
public OFActionBsnSetTunnelDst.Builder setDst(long dst) {
this.dst = dst;
this.dstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFActionBsnSetTunnelDst build() {
long dst = this.dstSet ? this.dst : parentMessage.dst; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataRequestVer10.java | 97 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwClearDataRequestVer10.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x15L;
}
@Override
public OFBsnBwClearDataRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetRequestVer10.java | 97 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnBwEnableGetRequestVer10.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x13L;
}
@Override
public OFBsnBwEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesRequestVer10.java | 97 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetInterfacesRequestVer10.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public OFBsnGetInterfacesRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableRequestVer10.java | 97 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnGetL2TableRequestVer10.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetL2TableRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL;
}
@Override
public OFBsnGetL2TableRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetRequestVer10.java | 97 |
| org/projectfloodlight/openflow/protocol/ver10/OFBsnHybridGetRequestVer10.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_10;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnHybridGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x1bL;
}
@Override
public OFBsnHybridGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 233 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 233 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 233 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 233 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 237 |
}
@Override
public OFPortMod build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFPort portNo = this.portNoSet ? this.portNo : parentMessage.portNo;
if(portNo == null)
throw new NullPointerException("Property portNo must not be null");
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : parentMessage.hwAddr;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
long config = this.configSet ? this.config : parentMessage.config;
long mask = this.maskSet ? this.mask : parentMessage.mask; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsEntryVer10.java | 404 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsEntryVer11.java | 459 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsEntryVer12.java | 523 |
private boolean maxEntriesSet;
private long maxEntries;
private boolean activeCountSet;
private long activeCount;
private boolean lookupCountSet;
private U64 lookupCount;
private boolean matchedCountSet;
private U64 matchedCount;
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFTableStatsEntry.Builder setTableId(TableId tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public String getName() {
return name;
}
@Override
public OFTableStatsEntry.Builder setName(String name) {
this.name = name;
this.nameSet = true;
return this;
}
@Override
public OFMatchBmap getMatch()throws UnsupportedOperationException { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnChecksumVer11.java | 100 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnChecksumVer11.java | 152 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFActionBsnChecksum.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFActionBsnChecksum build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 97 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 147 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public long getDst() {
return dst;
}
@Override
public OFActionBsnSetTunnelDst.Builder setDst(long dst) {
this.dst = dst;
this.dstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFActionBsnSetTunnelDst build() {
long dst = this.dstSet ? this.dst : parentMessage.dst; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataRequestVer11.java | 97 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwClearDataRequestVer11.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x15L;
}
@Override
public OFBsnBwClearDataRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetRequestVer11.java | 97 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnBwEnableGetRequestVer11.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x13L;
}
@Override
public OFBsnBwEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesRequestVer11.java | 97 |
| org/projectfloodlight/openflow/protocol/ver11/OFBsnGetInterfacesRequestVer11.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_11;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public OFBsnGetInterfacesRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFInstructionExperimenterVer11.java | 38 |
| org/projectfloodlight/openflow/protocol/ver12/OFInstructionExperimenterVer12.java | 38 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionIdExperimenterVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionIdExperimenterVer14.java | 38 |
public OFInstructionExperimenter readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 65535
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=OFInstructionType.EXPERIMENTER(65535), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnChecksumVer12.java | 100 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnChecksumVer12.java | 152 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFActionBsnChecksum.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFActionBsnChecksum build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 97 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 147 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public long getDst() {
return dst;
}
@Override
public OFActionBsnSetTunnelDst.Builder setDst(long dst) {
this.dst = dst;
this.dstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFActionBsnSetTunnelDst build() {
long dst = this.dstSet ? this.dst : parentMessage.dst; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFActionSetFieldVer12.java | 221 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionSetFieldVer13.java | 221 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionSetFieldVer14.java | 221 |
public void write(ChannelBuffer bb, OFActionSetFieldVer12 message) {
int startIndex = bb.writerIndex();
// fixed value property type = 25
bb.writeShort((short) 0x19);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
message.field.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
int alignedLength = ((length + 7)/8 * 8);
bb.setShort(lengthIndex, alignedLength);
// align message to 8 bytes
bb.writeZero(alignedLength - length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFActionSetFieldVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataRequestVer12.java | 97 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwClearDataRequestVer12.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x15L;
}
@Override
public OFBsnBwClearDataRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetRequestVer12.java | 97 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnBwEnableGetRequestVer12.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x13L;
}
@Override
public OFBsnBwEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesRequestVer12.java | 97 |
| org/projectfloodlight/openflow/protocol/ver12/OFBsnGetInterfacesRequestVer12.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_12;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public OFBsnGetInterfacesRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFMatchV3Ver12.java | 609 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchV3Ver13.java | 611 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchV3Ver14.java | 609 |
public void write(ChannelBuffer bb, OFMatchV3Ver12 message) {
int startIndex = bb.writerIndex();
// fixed value property type = 0x1
bb.writeShort((short) 0x1);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
message.oxmList.writeTo(bb);
// update length field
int length = bb.writerIndex() - startIndex;
int alignedLength = ((length + 7)/8 * 8);
bb.setShort(lengthIndex, length);
// align message to 8 bytes
bb.writeZero(alignedLength - length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFMatchV3Ver12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnChecksumVer13.java | 100 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnChecksumVer13.java | 152 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFActionBsnChecksum.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFActionBsnChecksum build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 147 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public long getDst() {
return dst;
}
@Override
public OFActionBsnSetTunnelDst.Builder setDst(long dst) {
this.dst = dst;
this.dstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFActionBsnSetTunnelDst build() {
long dst = this.dstSet ? this.dst : parentMessage.dst; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwClearDataRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x15L;
}
@Override
public OFBsnBwClearDataRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnBwEnableGetRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x13L;
}
@Override
public OFBsnBwEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnControllerConnectionsRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x38L;
}
@Override
public OFBsnControllerConnectionsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowIdleEnableGetRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x26L;
}
@Override
public OFBsnFlowIdleEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 471 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsEntryVer13.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 471 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsEntryVer14.java | 306 |
message.tableId.write2Bytes(bb);
// keyLength is length indicator for key, will be
// udpated when key has been written
int keyLengthIndex = bb.writerIndex();
bb.writeShort(0);
message.checksum.write16Bytes(bb);
int keyStartIndex = bb.writerIndex();
ChannelUtils.writeList(bb, message.key);
// update field length member keyLength
int keyLength = bb.writerIndex() - keyStartIndex;
bb.setShort(keyLengthIndex, keyLength);
ChannelUtils.writeList(bb, message.value);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnGentableEntryAddVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetInterfacesRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public OFBsnGetInterfacesRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGetSwitchPipelineRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x33L;
}
@Override
public OFBsnGetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 37 |
final static int LENGTH = 38;
private final static long DEFAULT_XID = 0x0L;
private final static short DEFAULT_ENABLED = (short) 0x0;
private final static OFPort DEFAULT_PORT_NO = OFPort.ANY;
private final static int DEFAULT_ACTOR_SYS_PRIORITY = 0x0;
private final static MacAddress DEFAULT_ACTOR_SYS_MAC = MacAddress.NONE;
private final static int DEFAULT_ACTOR_PORT_PRIORITY = 0x0;
private final static int DEFAULT_ACTOR_PORT_NUM = 0x0;
private final static int DEFAULT_ACTOR_KEY = 0x0;
// OF message fields
private final long xid;
private final short enabled;
private final OFPort portNo;
private final int actorSysPriority;
private final MacAddress actorSysMac;
private final int actorPortPriority;
private final int actorPortNum;
private final int actorKey;
//
// Immutable default instance
final static OFBsnSetLacpRequestVer13 DEFAULT = new OFBsnSetLacpRequestVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeRequestVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTimeRequestVer13.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2cL;
}
@Override
public OFBsnTimeRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvCircuitIdVer13.java | 178 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvDataVer13.java | 178 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvNameVer13.java | 178 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvCircuitIdVer14.java | 178 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvDataVer14.java | 178 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvNameVer14.java | 178 |
throw new OFParseError("Wrong type: Expected=0xe(0xe), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
byte[] value = ChannelUtils.readBytes(bb, length - (bb.readerIndex() - start)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnInternalPriorityVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnInternalPriorityVer13.java | 147 |
@Override
public OFInstructionType getType() {
return OFInstructionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public long getValue() {
return value;
}
@Override
public OFInstructionBsnInternalPriority.Builder setValue(long value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFInstructionBsnInternalPriority build() {
long value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 93 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 93 |
BuilderWithParent(OFMeterBandDropVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public int getType() {
return 0x1;
}
@Override
public long getRate() {
return rate;
}
@Override
public OFMeterBandDrop.Builder setRate(long rate) {
this.rate = rate;
this.rateSet = true;
return this;
}
@Override
public long getBurstSize() {
return burstSize;
}
@Override
public OFMeterBandDrop.Builder setBurstSize(long burstSize) {
this.burstSize = burstSize;
this.burstSizeSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturePropExperimenterMissVer13.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundlePropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsPropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFRolePropExperimenterVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturePropExperimenterMissVer14.java | 38 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableModPropExperimenterVer14.java | 38 |
public OFTableFeaturePropExperimenterMiss readFrom(ChannelBuffer bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property type == 0xffff
short type = bb.readShort();
if(type != (short) 0xffff)
throw new OFParseError("Wrong type: Expected=0xffff(0xffff), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
int experimenter = bb.readInt();
bb.readerIndex(start);
switch(experimenter) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsEntryVer13.java | 336 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsEntryVer14.java | 336 |
}
@Override
public OFTableStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long activeCount = this.activeCountSet ? this.activeCount : parentMessage.activeCount;
U64 lookupCount = this.lookupCountSet ? this.lookupCount : parentMessage.lookupCount;
if(lookupCount == null)
throw new NullPointerException("Property lookupCount must not be null");
U64 matchedCount = this.matchedCountSet ? this.matchedCount : parentMessage.matchedCount;
if(matchedCount == null)
throw new NullPointerException("Property matchedCount must not be null");
//
return new OFTableStatsEntryVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnChecksumVer14.java | 100 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnChecksumVer14.java | 152 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFActionBsnChecksum.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFActionBsnChecksum build() {
U128 checksum = this.checksumSet ? this.checksum : parentMessage.checksum; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 147 |
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public long getDst() {
return dst;
}
@Override
public OFActionBsnSetTunnelDst.Builder setDst(long dst) {
this.dst = dst;
this.dstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFActionBsnSetTunnelDst build() {
long dst = this.dstSet ? this.dst : parentMessage.dst; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwClearDataRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwClearDataRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x15L;
}
@Override
public OFBsnBwClearDataRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnBwEnableGetRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnBwEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x13L;
}
@Override
public OFBsnBwEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnControllerConnectionsRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnControllerConnectionsRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x38L;
}
@Override
public OFBsnControllerConnectionsRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowIdleEnableGetRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnFlowIdleEnableGetRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x26L;
}
@Override
public OFBsnFlowIdleEnableGetRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetInterfacesRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetInterfacesRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x9L;
}
@Override
public OFBsnGetInterfacesRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGetSwitchPipelineRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnGetSwitchPipelineRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x33L;
}
@Override
public OFBsnGetSwitchPipelineRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeRequestVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTimeRequestVer14.java | 147 |
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.EXPERIMENTER;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFBsnTimeRequest.Builder setXid(long xid) {
this.xid = xid;
this.xidSet = true;
return this;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2cL;
}
@Override
public OFBsnTimeRequest build() {
long xid = this.xidSet ? this.xid : parentMessage.xid; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnInternalPriorityVer14.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnInternalPriorityVer14.java | 147 |
@Override
public OFInstructionType getType() {
return OFInstructionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public long getValue() {
return value;
}
@Override
public OFInstructionBsnInternalPriority.Builder setValue(long value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFInstructionBsnInternalPriority build() {
long value = this.valueSet ? this.value : parentMessage.value; | |
| File | Line |
|---|---|
| net/onrc/openvirtex/packet/AbstractSegment.java | 108 |
| net/onrc/openvirtex/packet/UDP.java | 160 |
if (this.checksum == 0) {
bb.rewind();
int accumulation = 0;
// compute pseudo header mac
if (this.parent != null && this.parent instanceof IPv4) {
final IPv4 ipv4 = (IPv4) this.parent;
accumulation += (ipv4.getSourceAddress() >> 16 & 0xffff)
+ (ipv4.getSourceAddress() & 0xffff);
accumulation += (ipv4.getDestinationAddress() >> 16 & 0xffff)
+ (ipv4.getDestinationAddress() & 0xffff);
accumulation += ipv4.getProtocol() & 0xff;
accumulation += length & 0xffff; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowAddVer10.java | 856 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteStrictVer10.java | 855 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowDeleteVer10.java | 855 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyStrictVer10.java | 855 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowModifyVer10.java | 855 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 942 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 942 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 942 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 942 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 942 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 942 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 942 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 942 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 942 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 942 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 986 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 982 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 981 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 982 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 980 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 958 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 958 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 958 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 958 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 958 |
} else if (!cookie.equals(other.cookie))
return false;
if( idleTimeout != other.idleTimeout)
return false;
if( hardTimeout != other.hardTimeout)
return false;
if( priority != other.priority)
return false;
if (bufferId == null) {
if (other.bufferId != null)
return false;
} else if (!bufferId.equals(other.bufferId))
return false;
if (outPort == null) {
if (other.outPort != null)
return false;
} else if (!outPort.equals(other.outPort))
return false;
if (flags == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortDescVer10.java | 553 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 579 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 579 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortStatusVer13.java | 509 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 579 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortOpticalVer13.java | 352 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescVer14.java | 500 |
MacAddress hwAddr = this.hwAddrSet ? this.hwAddr : DEFAULT_HW_ADDR;
if(hwAddr == null)
throw new NullPointerException("Property hwAddr must not be null");
String name = this.nameSet ? this.name : DEFAULT_NAME;
if(name == null)
throw new NullPointerException("Property name must not be null");
Set<OFPortConfig> config = this.configSet ? this.config : DEFAULT_CONFIG;
if(config == null)
throw new NullPointerException("Property config must not be null");
Set<OFPortState> state = this.stateSet ? this.state : DEFAULT_STATE;
if(state == null)
throw new NullPointerException("Property state must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 42 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 42 |
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static U64 DEFAULT_COOKIE_MASK = U64.ZERO;
private final static TableId DEFAULT_TABLE_ID = TableId.ZERO;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static int DEFAULT_PRIORITY = 0x0;
private final static OFBufferId DEFAULT_BUFFER_ID = OFBufferId.NO_BUFFER;
private final static OFPort DEFAULT_OUT_PORT = OFPort.ANY;
private final static OFGroup DEFAULT_OUT_GROUP = OFGroup.ANY;
private final static Set<OFFlowModFlags> DEFAULT_FLAGS = ImmutableSet.<OFFlowModFlags>of();
private final static Match DEFAULT_MATCH = OFFactoryVer11.MATCH_WILDCARD_ALL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 777 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 809 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 800 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 809 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 800 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsEntryVer13.java | 844 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 800 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsEntryVer14.java | 866 |
if( idleTimeout != other.idleTimeout)
return false;
if (packetCount == null) {
if (other.packetCount != null)
return false;
} else if (!packetCount.equals(other.packetCount))
return false;
if (byteCount == null) {
if (other.byteCount != null)
return false;
} else if (!byteCount.equals(other.byteCount))
return false;
if (match == null) {
if (other.match != null)
return false;
} else if (!match.equals(other.match))
return false; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFMatchTypeSerializerVer11.java | 34 |
| org/projectfloodlight/openflow/protocol/ver12/OFMatchTypeSerializerVer12.java | 35 |
| org/projectfloodlight/openflow/protocol/ver13/OFMatchTypeSerializerVer13.java | 35 |
| org/projectfloodlight/openflow/protocol/ver14/OFMatchTypeSerializerVer14.java | 35 |
public static OFMatchType readFrom(ChannelBuffer bb) throws OFParseError {
try {
return ofWireValue(bb.readShort());
} catch (IllegalArgumentException e) {
throw new OFParseError(e);
}
}
public static void writeTo(ChannelBuffer bb, OFMatchType e) {
bb.writeShort(toWireValue(e));
}
public static void putTo(OFMatchType e, PrimitiveSink sink) {
sink.putShort(toWireValue(e));
}
public static OFMatchType ofWireValue(short val) {
switch(val) {
case STANDARD_VAL:
return OFMatchType.STANDARD; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortDescVer11.java | 607 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortDescVer12.java | 607 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescVer13.java | 607 |
return new OFPortDescVer11(
portNo,
hwAddr,
name,
config,
state,
curr,
advertised,
supported,
peer,
currSpeed,
maxSpeed
);
}
}
final static Reader READER = new Reader();
static class Reader implements OFMessageReader<OFPortDesc> {
@Override
public OFPortDesc readFrom(ChannelBuffer bb) throws OFParseError {
OFPort portNo = OFPort.read4Bytes(bb);
// pad: 4 bytes
bb.skipBytes(4);
MacAddress hwAddr = MacAddress.read6Bytes(bb);
// pad: 2 bytes
bb.skipBytes(2);
String name = ChannelUtils.readFixedLengthString(bb, 16);
Set<OFPortConfig> config = OFPortConfigSerializerVer11.readFrom(bb); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 62 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 62 |
throw new NullPointerException("OFBsnDebugCounterDescStatsReplyVer13: property entries cannot be null");
}
this.xid = xid;
this.flags = flags;
this.entries = entries;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsRequestVer13.java | 60 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsRequestVer13.java | 55 |
throw new NullPointerException("OFBsnFlowChecksumBucketStatsRequestVer13: property tableId cannot be null");
}
this.xid = xid;
this.flags = flags;
this.tableId = tableId;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_13;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsEntryVer13.java | 211 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsEntryVer13.java | 456 |
private boolean portNoSet;
private OFPort portNo;
private boolean inAdminStatusSet;
private Set<OFCalientOpticalPortAdminState> inAdminStatus;
private boolean inOperStatusSet;
private Set<OFCalientOpticalPortOperState> inOperStatus;
private boolean inOperCapabilitySet;
private Set<OFCalientOpticalPortOperCapability> inOperCapability;
private boolean inAlarmSet;
private Set<OFCalientOcsAlarm> inAlarm;
private boolean inportPowerSet;
private String inportPower;
private boolean outportPowerSet;
private String outportPower;
private boolean outAdminStatusSet;
private Set<OFCalientOpticalPortAdminState> outAdminStatus;
private boolean outOperStatusSet;
private Set<OFCalientOpticalPortOperState> outOperStatus;
private boolean outOperCapabilitySet;
private Set<OFCalientOpticalPortOperCapability> outOperCapability;
private boolean outAlarmSet;
private Set<OFCalientOcsAlarm> outAlarm;
private boolean inCircuitIdSet;
private String inCircuitId;
private boolean outCircuitIdSet;
private String outCircuitId; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDropVer13.java | 208 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandDscpRemarkVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterBandExperimenterVer13.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDropVer14.java | 208 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandDscpRemarkVer14.java | 246 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterBandExperimenterVer14.java | 246 |
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long rate = U32.f(bb.readInt());
long burstSize = U32.f(bb.readInt()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsVer13.java | 39 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsVer14.java | 39 |
final static int MINIMUM_LENGTH = 40;
private final static long DEFAULT_METER_ID = 0x0L;
private final static long DEFAULT_FLOW_COUNT = 0x0L;
private final static U64 DEFAULT_PACKET_IN_COUNT = U64.ZERO;
private final static U64 DEFAULT_BYTE_IN_COUNT = U64.ZERO;
private final static long DEFAULT_DURATION_SEC = 0x0L;
private final static long DEFAULT_DURATION_NSEC = 0x0L;
private final static List<OFMeterBandStats> DEFAULT_BAND_STATS = ImmutableList.<OFMeterBandStats>of();
// OF message fields
private final long meterId;
private final long flowCount;
private final U64 packetInCount;
private final U64 byteInCount;
private final long durationSec;
private final long durationNsec;
private final List<OFMeterBandStats> bandStats;
//
// Immutable default instance
final static OFMeterStatsVer13 DEFAULT = new OFMeterStatsVer13( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 62 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 62 |
throw new NullPointerException("OFBsnDebugCounterDescStatsReplyVer14: property entries cannot be null");
}
this.xid = xid;
this.flags = flags;
this.entries = entries;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsReplyFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xdL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | 60 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsRequestVer14.java | 55 |
throw new NullPointerException("OFBsnFlowChecksumBucketStatsRequestVer14: property tableId cannot be null");
}
this.xid = xid;
this.flags = flags;
this.tableId = tableId;
}
// Accessors for OF message fields
@Override
public OFVersion getVersion() {
return OFVersion.OF_14;
}
@Override
public OFType getType() {
return OFType.STATS_REQUEST;
}
@Override
public long getXid() {
return xid;
}
@Override
public OFStatsType getStatsType() {
return OFStatsType.EXPERIMENTER;
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xaL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFBundleAddMsgVer14.java | 306 |
| org/projectfloodlight/openflow/protocol/ver14/OFBundleCtrlMsgVer14.java | 353 |
throw new OFParseError("Wrong type: Expected=OFType.BUNDLE_ADD_MESSAGE(34), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
BundleId bundleId = BundleId.read4Bytes(bb); | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 174 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 941 |
else if(of_message_type.equals("OFAggregateStatsRequestVer13"))
ovxmessage= OVXFactoryInst.myOVXFactory.buildOVXAggregateStatsRequest(((OFAggregateStatsRequest)message).getXid(), ((OFAggregateStatsRequest)message).getFlags(), ((OFAggregateStatsRequest)message).getTableId(), ((OFAggregateStatsRequest)message).getOutPort(), ((OFAggregateStatsRequest)message).getOutGroup(), ((OFAggregateStatsRequest)message).getCookie(), ((OFAggregateStatsRequest)message).getCookieMask(), ((OFAggregateStatsRequest)message).getMatch());
else if(of_message_type.equals("OFPortDescStatsRequestVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 182 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 949 |
else if(of_message_type.equals("OFFlowStatsRequestVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXFlowStatsRequest(((OFFlowStatsRequest)message).getXid(), ((OFFlowStatsRequest)message).getFlags(), ((OFFlowStatsRequest)message).getTableId(), ((OFFlowStatsRequest)message).getOutPort(), ((OFFlowStatsRequest)message).getOutGroup(), ((OFFlowStatsRequest)message).getCookie(), ((OFFlowStatsRequest)message).getCookieMask(), ((OFFlowStatsRequest)message).getMatch());
else if(of_message_type.equals("OFPortStatsRequestVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/core/io/OVXMessageDecoder.java | 232 |
| net/onrc/openvirtex/elements/datapath/OVXSwitch.java | 999 |
else if(of_message_type.equals("OFPacketInVer13"))
ovxmessage=OVXFactoryInst.myOVXFactory.buildOVXPacketIn(((OFPacketIn)message).getXid(),((OFPacketIn)message).getBufferId(), ((OFPacketIn)message).getTotalLen(),((OFPacketIn)message).getReason(), ((OFPacketIn)message).getTableId(), ((OFPacketIn)message).getCookie(), ((OFPacketIn)message).getMatch(), ((OFPacketIn)message).getData());
else if(of_message_type.equals("OFPacketOutVer13")) | |
| File | Line |
|---|---|
| net/onrc/openvirtex/elements/port/OVXPort.java | 195 |
| net/onrc/openvirtex/elements/port/OVXPort.java | 216 |
OFPortState[] port_state_array=new OFPortState[]{};
Set<OFPortState> port_state_set=new HashSet<OFPortState>(Arrays.asList(port_state_array));
this.state = port_state_set;
if (OVXFactoryInst.ofversion == 10) {
this.parentSwitch.generateFeaturesReply();
} else if (OVXFactoryInst.ofversion == 13) {
this.parentSwitch.generateFeaturesReplyV3();
}
if (this.parentSwitch.isActive()) {
sendStatusMsg(OFPortReason.MODIFY);
}
if (this.isLink()) {
this.getLink().getOutLink().getDstPort().boot(); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnChecksumVer10.java | 140 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnChecksumVer11.java | 140 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnChecksumVer12.java | 140 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnChecksumVer13.java | 140 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnChecksumVer14.java | 140 |
return new OFActionBsnChecksumVer10(
checksum
);
}
}
static class Builder implements OFActionBsnChecksum.Builder {
// OF message fields
private boolean checksumSet;
private U128 checksum;
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x4L;
}
@Override
public U128 getChecksum() {
return checksum;
}
@Override
public OFActionBsnChecksum.Builder setChecksum(U128 checksum) {
this.checksum = checksum;
this.checksumSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFActionBsnSetTunnelDstVer10.java | 135 |
| org/projectfloodlight/openflow/protocol/ver11/OFActionBsnSetTunnelDstVer11.java | 135 |
| org/projectfloodlight/openflow/protocol/ver12/OFActionBsnSetTunnelDstVer12.java | 135 |
| org/projectfloodlight/openflow/protocol/ver13/OFActionBsnSetTunnelDstVer13.java | 135 |
| org/projectfloodlight/openflow/protocol/ver14/OFActionBsnSetTunnelDstVer14.java | 135 |
return new OFActionBsnSetTunnelDstVer10(
dst
);
}
}
static class Builder implements OFActionBsnSetTunnelDst.Builder {
// OF message fields
private boolean dstSet;
private long dst;
@Override
public OFActionType getType() {
return OFActionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0x2L;
}
@Override
public long getDst() {
return dst;
}
@Override
public OFActionBsnSetTunnelDst.Builder setDst(long dst) {
this.dst = dst;
this.dstSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_10; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 482 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 475 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 475 |
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 474 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 474 |
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
long xid = U32.f(bb.readInt());
DatapathId datapathId = DatapathId.of(bb.readLong());
long nBuffers = U32.f(bb.readInt());
short nTables = U8.f(bb.readByte()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsReplyVer10.java | 392 |
| org/projectfloodlight/openflow/protocol/ver10/OFPortStatsReplyVer10.java | 399 |
| org/projectfloodlight/openflow/protocol/ver10/OFQueueStatsReplyVer10.java | 392 |
| org/projectfloodlight/openflow/protocol/ver10/OFTableStatsReplyVer10.java | 392 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsReplyVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDescStatsReplyVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsReplyVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortStatsReplyVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueueStatsReplyVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver11/OFTableStatsReplyVer11.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsReplyVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDescStatsReplyVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsReplyVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortStatsReplyVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueStatsReplyVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver12/OFTableStatsReplyVer12.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterDescStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnDebugCounterStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnFlowChecksumBucketStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGenericStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableBucketStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableDescStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryDescStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnPortCounterStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSwitchPipelineStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTableChecksumStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVlanCounterStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnVrfCounterStatsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsReplyVer13.java | 494 |
| org/projectfloodlight/openflow/protocol/ver13/OFCircuitPortsReplyVer13.java | 443 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDescStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFMeterStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortDescStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsReplyVer13.java | 400 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableFeaturesStatsRequestVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver13/OFTableStatsReplyVer13.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterDescStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnDebugCounterStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGenericStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableBucketStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableDescStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryDescStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnPortCounterStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSwitchPipelineStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTableChecksumStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVlanCounterStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnVrfCounterStatsReplyVer14.java | 443 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDescStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortDescStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueDescStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueueStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableDescStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsReplyVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesStatsRequestVer14.java | 397 |
| org/projectfloodlight/openflow/protocol/ver14/OFTableStatsReplyVer14.java | 397 |
} else if (!flags.equals(other.flags))
return false;
if (entries == null) {
if (other.entries != null)
return false;
} else if (!entries.equals(other.entries))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32));
result = prime * result + ((flags == null) ? 0 : flags.hashCode());
result = prime * result + ((entries == null) ? 0 : entries.hashCode()); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFQueuePropMinRateVer10.java | 170 |
| org/projectfloodlight/openflow/protocol/ver11/OFQueuePropMinRateVer11.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropMaxRateVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueuePropMinRateVer12.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropMaxRateVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueuePropMinRateVer13.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropMaxRateVer14.java | 170 |
| org/projectfloodlight/openflow/protocol/ver14/OFQueuePropMinRateVer14.java | 170 |
throw new OFParseError("Wrong type: Expected=0x1(0x1), got="+type);
int length = U16.f(bb.readShort());
if(length != 16)
throw new OFParseError("Wrong length: Expected=16(16), got="+length);
if(bb.readableBytes() + (bb.readerIndex() - start) < length) {
// Buffer does not have all data yet
bb.readerIndex(start);
return null;
}
if(logger.isTraceEnabled())
logger.trace("readFrom - length={}", length);
// pad: 4 bytes
bb.skipBytes(4);
int rate = U16.f(bb.readShort());
// pad: 6 bytes
bb.skipBytes(6); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFAggregateStatsRequestVer11.java | 599 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsRequestVer11.java | 599 |
bb.writeShort((short) 0x2);
OFStatsRequestFlagsSerializerVer11.writeTo(bb, message.flags);
// pad: 4 bytes
bb.writeZero(4);
message.tableId.writeByte(bb);
// pad: 3 bytes
bb.writeZero(3);
message.outPort.write4Bytes(bb);
message.outGroup.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.match.writeTo(bb);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFAggregateStatsRequestVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowRemovedVer11.java | 700 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 716 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 716 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 716 |
bb.writeShort((short) 0x88);
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeShort(U16.t(message.priority));
bb.writeByte(U8.t(message.reason));
message.tableId.writeByte(bb);
bb.writeInt(U32.t(message.durationSec));
bb.writeInt(U32.t(message.durationNsec));
bb.writeShort(U16.t(message.idleTimeout));
// pad: 2 bytes
bb.writeZero(2); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupAddVer11.java | 190 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupDeleteVer11.java | 190 |
| org/projectfloodlight/openflow/protocol/ver11/OFGroupModifyVer11.java | 190 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupAddVer12.java | 190 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupDeleteVer12.java | 190 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModifyVer12.java | 190 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupAddVer13.java | 190 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupDeleteVer13.java | 190 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModifyVer13.java | 190 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupAddVer14.java | 190 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupDeleteVer14.java | 190 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModifyVer14.java | 190 |
public OFGroupAdd build() {
long xid = this.xidSet ? this.xid : parentMessage.xid;
OFGroupType groupType = this.groupTypeSet ? this.groupType : parentMessage.groupType;
if(groupType == null)
throw new NullPointerException("Property groupType must not be null");
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
List<OFBucket> buckets = this.bucketsSet ? this.buckets : parentMessage.buckets;
if(buckets == null)
throw new NullPointerException("Property buckets must not be null");
//
return new OFGroupAddVer11( | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 222 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 222 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupStatsEntryVer13.java | 236 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupStatsEntryVer14.java | 236 |
}
@Override
public OFGroupStatsEntry build() {
OFGroup group = this.groupSet ? this.group : parentMessage.group;
if(group == null)
throw new NullPointerException("Property group must not be null");
long refCount = this.refCountSet ? this.refCount : parentMessage.refCount;
U64 packetCount = this.packetCountSet ? this.packetCount : parentMessage.packetCount;
if(packetCount == null)
throw new NullPointerException("Property packetCount must not be null");
U64 byteCount = this.byteCountSet ? this.byteCount : parentMessage.byteCount;
if(byteCount == null)
throw new NullPointerException("Property byteCount must not be null"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 450 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 450 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 450 |
sink.putByte((byte) 0x2);
// fixed value property type = 16
sink.putByte((byte) 0x10);
// fixed value property length = 40
sink.putShort((short) 0x28);
sink.putLong(message.xid);
message.portNo.putTo(sink);
// skip pad (4 bytes)
message.hwAddr.putTo(sink);
// skip pad (2 bytes)
sink.putLong(message.config);
sink.putLong(message.mask);
sink.putLong(message.advertise);
// skip pad (4 bytes)
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFPortModVer11> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFPacketQueueVer12.java | 296 |
| org/projectfloodlight/openflow/protocol/ver13/OFPacketQueueVer13.java | 296 |
| org/projectfloodlight/openflow/protocol/ver14/OFPacketQueueVer14.java | 296 |
public void write(ChannelBuffer bb, OFPacketQueueVer12 message) {
int startIndex = bb.writerIndex();
bb.writeInt(U32.t(message.queueId));
message.port.write4Bytes(bb);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
// pad: 6 bytes
bb.writeZero(6);
ChannelUtils.writeList(bb, message.properties);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFPacketQueueVer12("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 685 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnSetLacpRequestVer13.java | 601 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 685 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnSetLacpRequestVer14.java | 601 |
StringBuilder b = new StringBuilder("OFBsnLacpStatsEntryVer13(");
b.append("portNo=").append(portNo);
b.append(", ");
b.append("actorSysPriority=").append(actorSysPriority);
b.append(", ");
b.append("actorSysMac=").append(actorSysMac);
b.append(", ");
b.append("actorPortPriority=").append(actorPortPriority);
b.append(", ");
b.append("actorPortNum=").append(actorPortNum);
b.append(", ");
b.append("actorKey=").append(actorKey);
b.append(", "); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortDescPropOpticalVer13.java | 1015 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientPortStatsEntryVer13.java | 868 |
if (inAdminStatus == null) {
if (other.inAdminStatus != null)
return false;
} else if (!inAdminStatus.equals(other.inAdminStatus))
return false;
if (inOperStatus == null) {
if (other.inOperStatus != null)
return false;
} else if (!inOperStatus.equals(other.inOperStatus))
return false;
if (inOperCapability == null) {
if (other.inOperCapability != null)
return false;
} else if (!inOperCapability.equals(other.inOperCapability))
return false;
if (outAdminStatus == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFInstructionBsnInternalPriorityVer13.java | 135 |
| org/projectfloodlight/openflow/protocol/ver14/OFInstructionBsnInternalPriorityVer14.java | 135 |
return new OFInstructionBsnInternalPriorityVer13(
value
);
}
}
static class Builder implements OFInstructionBsnInternalPriority.Builder {
// OF message fields
private boolean valueSet;
private long value;
@Override
public OFInstructionType getType() {
return OFInstructionType.EXPERIMENTER;
}
@Override
public long getExperimenter() {
return 0x5c16c7L;
}
@Override
public long getSubtype() {
return 0xcL;
}
@Override
public long getValue() {
return value;
}
@Override
public OFInstructionBsnInternalPriority.Builder setValue(long value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFAggregateStatsRequestVer10.java | 98 |
| org/projectfloodlight/openflow/protocol/ver10/OFFlowStatsRequestVer10.java | 98 |
}
@Override
public Set<OFStatsRequestFlags> getFlags() {
return flags;
}
@Override
public TableId getTableId() {
return tableId;
}
@Override
public OFPort getOutPort() {
return outPort;
}
@Override
public OFGroup getOutGroup()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property outGroup not supported in version 1.0");
}
@Override
public U64 getCookie()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookie not supported in version 1.0");
}
@Override
public U64 getCookieMask()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property cookieMask not supported in version 1.0");
}
@Override
public Match getMatch() {
return match;
}
public OFAggregateStatsRequest.Builder createBuilder() { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFFeaturesReplyVer10.java | 603 |
| org/projectfloodlight/openflow/protocol/ver11/OFFeaturesReplyVer11.java | 596 |
| org/projectfloodlight/openflow/protocol/ver12/OFFeaturesReplyVer12.java | 596 |
OFFeaturesReplyVer10 other = (OFFeaturesReplyVer10) obj;
if( xid != other.xid)
return false;
if (datapathId == null) {
if (other.datapathId != null)
return false;
} else if (!datapathId.equals(other.datapathId))
return false;
if( nBuffers != other.nBuffers)
return false;
if( nTables != other.nTables)
return false;
if (capabilities == null) {
if (other.capabilities != null)
return false;
} else if (!capabilities.equals(other.capabilities))
return false;
if (actions == null) { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortConfigSerializerVer10.java | 74 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortConfigSerializerVer11.java | 65 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortConfigSerializerVer12.java | 65 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortConfigSerializerVer13.java | 65 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortConfigSerializerVer14.java | 65 |
set.add(OFPortConfig.NO_FLOOD);
if((val & NO_FWD_VAL) != 0)
set.add(OFPortConfig.NO_FWD);
if((val & NO_PACKET_IN_VAL) != 0)
set.add(OFPortConfig.NO_PACKET_IN);
if((val & BSN_MIRROR_DEST_VAL) != 0)
set.add(OFPortConfig.BSN_MIRROR_DEST);
return Collections.unmodifiableSet(set);
}
public static int toWireValue(Set<OFPortConfig> set) {
int wireValue = 0;
for(OFPortConfig e: set) {
switch(e) {
case PORT_DOWN:
wireValue |= PORT_DOWN_VAL;
break;
case NO_STP: | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver10/OFPortModVer10.java | 515 |
| org/projectfloodlight/openflow/protocol/ver11/OFPortModVer11.java | 525 |
| org/projectfloodlight/openflow/protocol/ver12/OFPortModVer12.java | 525 |
| org/projectfloodlight/openflow/protocol/ver13/OFPortModVer13.java | 525 |
| org/projectfloodlight/openflow/protocol/ver14/OFPortModVer14.java | 533 |
OFPortModVer10 other = (OFPortModVer10) obj;
if( xid != other.xid)
return false;
if (portNo == null) {
if (other.portNo != null)
return false;
} else if (!portNo.equals(other.portNo))
return false;
if (hwAddr == null) {
if (other.hwAddr != null)
return false;
} else if (!hwAddr.equals(other.hwAddr))
return false;
if( config != other.config)
return false;
if( mask != other.mask)
return false;
if( advertise != other.advertise) | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowAddVer11.java | 850 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteStrictVer11.java | 850 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowDeleteVer11.java | 850 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyStrictVer11.java | 850 |
| org/projectfloodlight/openflow/protocol/ver11/OFFlowModifyVer11.java | 850 |
public void write(ChannelBuffer bb, OFFlowAddVer11 message) {
int startIndex = bb.writerIndex();
// fixed value property version = 2
bb.writeByte((byte) 0x2);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 0
bb.writeByte((short) 0x0); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFFlowStatsEntryVer11.java | 373 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowStatsEntryVer12.java | 373 |
| org/projectfloodlight/openflow/protocol/ver13/OFCalientFlowStatsEntryVer13.java | 450 |
public OFFlowStatsEntry build() {
TableId tableId = this.tableIdSet ? this.tableId : parentMessage.tableId;
if(tableId == null)
throw new NullPointerException("Property tableId must not be null");
long durationSec = this.durationSecSet ? this.durationSec : parentMessage.durationSec;
long durationNsec = this.durationNsecSet ? this.durationNsec : parentMessage.durationNsec;
int priority = this.prioritySet ? this.priority : parentMessage.priority;
int idleTimeout = this.idleTimeoutSet ? this.idleTimeout : parentMessage.idleTimeout;
int hardTimeout = this.hardTimeoutSet ? this.hardTimeout : parentMessage.hardTimeout; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFGroupStatsEntryVer11.java | 71 |
| org/projectfloodlight/openflow/protocol/ver12/OFGroupStatsEntryVer12.java | 71 |
throw new NullPointerException("OFGroupStatsEntryVer11: property bucketStats cannot be null");
}
this.group = group;
this.refCount = refCount;
this.packetCount = packetCount;
this.byteCount = byteCount;
this.bucketStats = bucketStats;
}
// Accessors for OF message fields
@Override
public OFGroup getGroup() {
return group;
}
@Override
public long getRefCount() {
return refCount;
}
@Override
public U64 getPacketCount() {
return packetCount;
}
@Override
public U64 getByteCount() {
return byteCount;
}
@Override
public List<OFBucketCounter> getBucketStats() {
return bucketStats;
}
@Override
public long getDurationSec()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property durationSec not supported in version 1.1"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver11/OFQueueGetConfigReplyVer11.java | 326 |
| org/projectfloodlight/openflow/protocol/ver12/OFQueueGetConfigReplyVer12.java | 326 |
| org/projectfloodlight/openflow/protocol/ver13/OFQueueGetConfigReplyVer13.java | 326 |
bb.writeByte((byte) 0x2);
// fixed value property type = 23
bb.writeByte((byte) 0x17);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
message.port.write4Bytes(bb);
// pad: 4 bytes
bb.writeZero(4);
ChannelUtils.writeList(bb, message.queues);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFQueueGetConfigReplyVer11("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowAddVer12.java | 850 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteStrictVer12.java | 850 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowDeleteVer12.java | 850 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyStrictVer12.java | 850 |
| org/projectfloodlight/openflow/protocol/ver12/OFFlowModifyVer12.java | 850 |
public void write(ChannelBuffer bb, OFFlowAddVer12 message) {
int startIndex = bb.writerIndex();
// fixed value property version = 3
bb.writeByte((byte) 0x3);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 0
bb.writeByte((short) 0x0); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFFlowRemovedVer12.java | 37 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowRemovedVer13.java | 37 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowRemovedVer14.java | 37 |
final static int MINIMUM_LENGTH = 56;
private final static long DEFAULT_XID = 0x0L;
private final static U64 DEFAULT_COOKIE = U64.ZERO;
private final static int DEFAULT_PRIORITY = 0x0;
private final static short DEFAULT_REASON = (short) 0x0;
private final static TableId DEFAULT_TABLE_ID = TableId.ALL;
private final static long DEFAULT_DURATION_SEC = 0x0L;
private final static long DEFAULT_DURATION_NSEC = 0x0L;
private final static int DEFAULT_IDLE_TIMEOUT = 0x0;
private final static int DEFAULT_HARD_TIMEOUT = 0x0;
private final static U64 DEFAULT_PACKET_COUNT = U64.ZERO;
private final static U64 DEFAULT_BYTE_COUNT = U64.ZERO;
private final static Match DEFAULT_MATCH = OFFactoryVer12.MATCH_WILDCARD_ALL; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFGroupModFailedCodeSerializerVer12.java | 97 |
| org/projectfloodlight/openflow/protocol/ver13/OFGroupModFailedCodeSerializerVer13.java | 97 |
| org/projectfloodlight/openflow/protocol/ver14/OFGroupModFailedCodeSerializerVer14.java | 97 |
throw new IllegalArgumentException("Illegal wire value for type OFGroupModFailedCode in version 1.2: " + val);
}
}
public static short toWireValue(OFGroupModFailedCode e) {
switch(e) {
case GROUP_EXISTS:
return GROUP_EXISTS_VAL;
case INVALID_GROUP:
return INVALID_GROUP_VAL;
case WEIGHT_UNSUPPORTED:
return WEIGHT_UNSUPPORTED_VAL;
case OUT_OF_GROUPS:
return OUT_OF_GROUPS_VAL;
case OUT_OF_BUCKETS:
return OUT_OF_BUCKETS_VAL;
case CHAINING_UNSUPPORTED:
return CHAINING_UNSUPPORTED_VAL;
case WATCH_UNSUPPORTED:
return WATCH_UNSUPPORTED_VAL;
case LOOP:
return LOOP_VAL;
case UNKNOWN_GROUP:
return UNKNOWN_GROUP_VAL;
case CHAINED_GROUP:
return CHAINED_GROUP_VAL;
case BAD_TYPE:
return BAD_TYPE_VAL;
case BAD_COMMAND:
return BAD_COMMAND_VAL;
case BAD_BUCKET:
return BAD_BUCKET_VAL;
case BAD_WATCH:
return BAD_WATCH_VAL;
case EPERM:
return EPERM_VAL;
default:
throw new IllegalArgumentException("Illegal enum value for type OFGroupModFailedCode in version 1.2: " + e); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpOpVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpOpVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpOpVer14.java | 106 |
BuilderWithParent(OFOxmArpOpVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002a02L;
}
@Override
public ArpOpcode getValue() {
return value;
}
@Override
public OFOxmArpOp.Builder setValue(ArpOpcode value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ArpOpcode> getMatchField() {
return MatchField.ARP_OP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ArpOpcode> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpShaVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpShaVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpShaVer14.java | 106 |
BuilderWithParent(OFOxmArpShaVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpSha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_SHA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpSpaVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpSpaVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpSpaVer14.java | 106 |
BuilderWithParent(OFOxmArpSpaVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002c04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpSpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_SPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpThaVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpThaVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpThaVer14.java | 106 |
BuilderWithParent(OFOxmArpThaVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmArpTha.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ARP_THA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmArpTpaVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmArpTpaVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmArpTpaVer14.java | 106 |
BuilderWithParent(OFOxmArpTpaVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmArpTpa.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.ARP_TPA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnEgrPortGroupIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnEgrPortGroupIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnEgrPortGroupIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnEgrPortGroupIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30e04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnEgrPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_EGR_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnGlobalVrfAllowedVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnGlobalVrfAllowedVer13.java | 106 |
BuilderWithParent(OFOxmBsnGlobalVrfAllowedVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30601L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnGlobalVrfAllowed.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_GLOBAL_VRF_ALLOWED;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts128Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts128Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts128Ver14.java | 106 |
BuilderWithParent(OFOxmBsnInPorts128Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30010L;
}
@Override
public OFBitMask128 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts128.Builder setValue(OFBitMask128 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask128> getMatchField() {
return MatchField.BSN_IN_PORTS_128;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask128> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnInPorts512Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInPorts512Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInPorts512Ver14.java | 106 |
BuilderWithParent(OFOxmBsnInPorts512Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32640L;
}
@Override
public OFBitMask512 getValue() {
return value;
}
@Override
public OFOxmBsnInPorts512.Builder setValue(OFBitMask512 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBitMask512> getMatchField() {
return MatchField.BSN_IN_PORTS_512;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBitMask512> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnIngressPortGroupIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnIngressPortGroupIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnIngressPortGroupIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnIngressPortGroupIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnIngressPortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_INGRESS_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL2CacheHitVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL2CacheHitVer13.java | 106 |
BuilderWithParent(OFOxmBsnL2CacheHitVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32401L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmBsnL2CacheHit.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.BSN_L2_CACHE_HIT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3DstClassIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3DstClassIdVer13.java | 106 |
BuilderWithParent(OFOxmBsnL3DstClassIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30c04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3DstClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_DST_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3InterfaceClassIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3InterfaceClassIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3InterfaceClassIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnL3InterfaceClassIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30804L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3InterfaceClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_INTERFACE_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnL3SrcClassIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnL3SrcClassIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnL3SrcClassIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnL3SrcClassIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30a04L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnL3SrcClassId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_L3_SRC_CLASS_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnLagIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnLagIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnLagIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnLagIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30204L;
}
@Override
public LagId getValue() {
return value;
}
@Override
public OFOxmBsnLagId.Builder setValue(LagId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<LagId> getMatchField() {
return MatchField.BSN_LAG_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<LagId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnTcpFlagsVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnTcpFlagsVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnTcpFlagsVer14.java | 106 |
BuilderWithParent(OFOxmBsnTcpFlagsVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32002L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmBsnTcpFlags.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.BSN_TCP_FLAGS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf0Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf0Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf0Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf0Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31004L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf0.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF0;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf1Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf1Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf1Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf1Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31204L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf1.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF1;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf2Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf2Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf2Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf2Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31404L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf2.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF2;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf3Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf3Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf3Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf3Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31604L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf3.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF3;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf4Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf4Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf4Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31804L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf4.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF4;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf5Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf5Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf5Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf5Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31a04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf5.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF5;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf6Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf6Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf6Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf6Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31c04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf6.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF6;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnUdf7Ver12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf7Ver13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnUdf7Ver14.java | 106 |
BuilderWithParent(OFOxmBsnUdf7Ver12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x31e04L;
}
@Override
public UDF getValue() {
return value;
}
@Override
public OFOxmBsnUdf7.Builder setValue(UDF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<UDF> getMatchField() {
return MatchField.BSN_UDF7;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<UDF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVlanXlatePortGroupIdVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVlanXlatePortGroupIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVlanXlatePortGroupIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnVlanXlatePortGroupIdVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32204L;
}
@Override
public ClassId getValue() {
return value;
}
@Override
public OFOxmBsnVlanXlatePortGroupId.Builder setValue(ClassId value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ClassId> getMatchField() {
return MatchField.BSN_VLAN_XLATE_PORT_GROUP_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ClassId> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmBsnVrfVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVrfVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVrfVer14.java | 106 |
BuilderWithParent(OFOxmBsnVrfVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x30404L;
}
@Override
public VRF getValue() {
return value;
}
@Override
public OFOxmBsnVrf.Builder setValue(VRF value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VRF> getMatchField() {
return MatchField.BSN_VRF;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VRF> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthDstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthDstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthDstVer14.java | 106 |
BuilderWithParent(OFOxmEthDstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000606L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthSrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthSrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthSrcVer14.java | 106 |
BuilderWithParent(OFOxmEthSrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000806L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmEthTypeVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmEthTypeVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmEthTypeVer14.java | 106 |
BuilderWithParent(OFOxmEthTypeVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000a02L;
}
@Override
public EthType getValue() {
return value;
}
@Override
public OFOxmEthType.Builder setValue(EthType value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<EthType> getMatchField() {
return MatchField.ETH_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<EthType> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4CodeVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4CodeVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4CodeVer14.java | 106 |
BuilderWithParent(OFOxmIcmpv4CodeVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002801L;
}
@Override
public ICMPv4Code getValue() {
return value;
}
@Override
public OFOxmIcmpv4Code.Builder setValue(ICMPv4Code value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Code> getMatchField() {
return MatchField.ICMPV4_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Code> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv4TypeVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv4TypeVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv4TypeVer14.java | 106 |
BuilderWithParent(OFOxmIcmpv4TypeVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002601L;
}
@Override
public ICMPv4Type getValue() {
return value;
}
@Override
public OFOxmIcmpv4Type.Builder setValue(ICMPv4Type value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<ICMPv4Type> getMatchField() {
return MatchField.ICMPV4_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<ICMPv4Type> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6CodeVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6CodeVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6CodeVer14.java | 106 |
BuilderWithParent(OFOxmIcmpv6CodeVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003c01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Code.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_CODE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIcmpv6TypeVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIcmpv6TypeVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIcmpv6TypeVer14.java | 106 |
BuilderWithParent(OFOxmIcmpv6TypeVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003a01L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmIcmpv6Type.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.ICMPV6_TYPE;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPhyPortVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPhyPortVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPhyPortVer14.java | 106 |
BuilderWithParent(OFOxmInPhyPortVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000204L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPhyPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PHY_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmInPortVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmInPortVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmInPortVer14.java | 106 |
BuilderWithParent(OFOxmInPortVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000004L;
}
@Override
public OFPort getValue() {
return value;
}
@Override
public OFOxmInPort.Builder setValue(OFPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFPort> getMatchField() {
return MatchField.IN_PORT;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpDscpVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpDscpVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpDscpVer14.java | 106 |
BuilderWithParent(OFOxmIpDscpVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001001L;
}
@Override
public IpDscp getValue() {
return value;
}
@Override
public OFOxmIpDscp.Builder setValue(IpDscp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpDscp> getMatchField() {
return MatchField.IP_DSCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpDscp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpEcnVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpEcnVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpEcnVer14.java | 106 |
BuilderWithParent(OFOxmIpEcnVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001201L;
}
@Override
public IpEcn getValue() {
return value;
}
@Override
public OFOxmIpEcn.Builder setValue(IpEcn value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpEcn> getMatchField() {
return MatchField.IP_ECN;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpEcn> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpProtoVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpProtoVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpProtoVer14.java | 106 |
BuilderWithParent(OFOxmIpProtoVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001401L;
}
@Override
public IpProtocol getValue() {
return value;
}
@Override
public OFOxmIpProto.Builder setValue(IpProtocol value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IpProtocol> getMatchField() {
return MatchField.IP_PROTO;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IpProtocol> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4DstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4DstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4DstVer14.java | 106 |
BuilderWithParent(OFOxmIpv4DstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001804L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv4SrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv4SrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv4SrcVer14.java | 106 |
BuilderWithParent(OFOxmIpv4SrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001604L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6DstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6DstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6DstVer14.java | 106 |
BuilderWithParent(OFOxmIpv6DstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003610L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Dst.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6FlabelVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6FlabelVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6FlabelVer14.java | 106 |
BuilderWithParent(OFOxmIpv6FlabelVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003804L;
}
@Override
public IPv6FlowLabel getValue() {
return value;
}
@Override
public OFOxmIpv6Flabel.Builder setValue(IPv6FlowLabel value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6FlowLabel> getMatchField() {
return MatchField.IPV6_FLABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6FlowLabel> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdSllVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdSllVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdSllVer14.java | 106 |
BuilderWithParent(OFOxmIpv6NdSllVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004006L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdSll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_SLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTargetVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTargetVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTargetVer14.java | 106 |
BuilderWithParent(OFOxmIpv6NdTargetVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003e10L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6NdTarget.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_ND_TARGET;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6NdTllVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6NdTllVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6NdTllVer14.java | 106 |
BuilderWithParent(OFOxmIpv6NdTllVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004206L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmIpv6NdTll.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.IPV6_ND_TLL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmIpv6SrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6SrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6SrcVer14.java | 106 |
BuilderWithParent(OFOxmIpv6SrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80003410L;
}
@Override
public IPv6Address getValue() {
return value;
}
@Override
public OFOxmIpv6Src.Builder setValue(IPv6Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv6Address> getMatchField() {
return MatchField.IPV6_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv6Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMetadataVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMetadataVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMetadataVer14.java | 106 |
BuilderWithParent(OFOxmMetadataVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000408L;
}
@Override
public OFMetadata getValue() {
return value;
}
@Override
public OFOxmMetadata.Builder setValue(OFMetadata value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFMetadata> getMatchField() {
return MatchField.METADATA;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFMetadata> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsLabelVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsLabelVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsLabelVer14.java | 106 |
BuilderWithParent(OFOxmMplsLabelVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004404L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmMplsLabel.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.MPLS_LABEL;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmMplsTcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsTcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsTcVer14.java | 106 |
BuilderWithParent(OFOxmMplsTcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004601L;
}
@Override
public U8 getValue() {
return value;
}
@Override
public OFOxmMplsTc.Builder setValue(U8 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U8> getMatchField() {
return MatchField.MPLS_TC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U8> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpDstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpDstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpDstVer14.java | 106 |
BuilderWithParent(OFOxmSctpDstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002402L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmSctpSrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmSctpSrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmSctpSrcVer14.java | 106 |
BuilderWithParent(OFOxmSctpSrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002202L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmSctpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.SCTP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpDstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpDstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpDstVer14.java | 106 |
BuilderWithParent(OFOxmTcpDstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001c02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTcpSrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTcpSrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTcpSrcVer14.java | 106 |
BuilderWithParent(OFOxmTcpSrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001a02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmTcpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.TCP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4DstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4DstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4DstVer14.java | 106 |
BuilderWithParent(OFOxmTunnelIpv4DstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x14004L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Dst.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmTunnelIpv4SrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIpv4SrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIpv4SrcVer14.java | 106 |
BuilderWithParent(OFOxmTunnelIpv4SrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x13e04L;
}
@Override
public IPv4Address getValue() {
return value;
}
@Override
public OFOxmTunnelIpv4Src.Builder setValue(IPv4Address value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<IPv4Address> getMatchField() {
return MatchField.TUNNEL_IPV4_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<IPv4Address> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpDstVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpDstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpDstVer14.java | 106 |
BuilderWithParent(OFOxmUdpDstVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80002002L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpDst.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmUdpSrcVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmUdpSrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmUdpSrcVer14.java | 106 |
BuilderWithParent(OFOxmUdpSrcVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80001e02L;
}
@Override
public TransportPort getValue() {
return value;
}
@Override
public OFOxmUdpSrc.Builder setValue(TransportPort value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<TransportPort> getMatchField() {
return MatchField.UDP_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<TransportPort> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanPcpVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanPcpVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanPcpVer14.java | 106 |
BuilderWithParent(OFOxmVlanPcpVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000e01L;
}
@Override
public VlanPcp getValue() {
return value;
}
@Override
public OFOxmVlanPcp.Builder setValue(VlanPcp value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<VlanPcp> getMatchField() {
return MatchField.VLAN_PCP;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<VlanPcp> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver12/OFOxmVlanVidVer12.java | 106 |
| org/projectfloodlight/openflow/protocol/ver13/OFOxmVlanVidVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmVlanVidVer14.java | 106 |
BuilderWithParent(OFOxmVlanVidVer12 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80000c02L;
}
@Override
public OFVlanVidMatch getValue() {
return value;
}
@Override
public OFOxmVlanVid.Builder setValue(OFVlanVidMatch value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFVlanVidMatch> getMatchField() {
return MatchField.VLAN_VID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFVlanVidMatch> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.2"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetReplyVer13.java | 472 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncGetRequestVer13.java | 472 |
| org/projectfloodlight/openflow/protocol/ver13/OFAsyncSetVer13.java | 472 |
sink.putByte((byte) 0x1b);
// fixed value property length = 32
sink.putShort((short) 0x20);
sink.putLong(message.xid);
sink.putLong(message.packetInMaskEqualMaster);
sink.putLong(message.packetInMaskSlave);
sink.putLong(message.portStatusMaskEqualMaster);
sink.putLong(message.portStatusMaskSlave);
sink.putLong(message.flowRemovedMaskEqualMaster);
sink.putLong(message.flowRemovedMaskSlave);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFAsyncGetReplyVer13> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableClearReplyVer13.java | 396 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableClearReplyVer14.java | 396 |
bb.writeByte((byte) 0x4);
// fixed value property type = 4
bb.writeByte((byte) 0x4);
// fixed value property length = 28
bb.writeShort((short) 0x1c);
bb.writeInt(U32.t(message.xid));
// fixed value property experimenter = 0x5c16c7L
bb.writeInt(0x5c16c7);
// fixed value property subtype = 0x31L
bb.writeInt(0x31);
message.tableId.write2Bytes(bb);
// pad: 2 bytes
bb.writeZero(2);
bb.writeInt(U32.t(message.deletedCount));
bb.writeInt(U32.t(message.errorCount));
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFBsnGentableClearReplyVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnGentableEntryAddVer13.java | 431 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnGentableEntryAddVer14.java | 431 |
sink.putByte((byte) 0x4);
// fixed value property type = 4
sink.putByte((byte) 0x4);
// FIXME: skip funnel of length
sink.putLong(message.xid);
// fixed value property experimenter = 0x5c16c7L
sink.putInt(0x5c16c7);
// fixed value property subtype = 0x2eL
sink.putInt(0x2e);
message.tableId.putTo(sink);
// FIXME: skip funnel of keyLength
message.checksum.putTo(sink);
FunnelUtils.putList(message.key, sink);
FunnelUtils.putList(message.value, sink);
}
}
public void writeTo(ChannelBuffer bb) {
WRITER.write(bb, this);
}
final static Writer WRITER = new Writer();
static class Writer implements OFMessageWriter<OFBsnGentableEntryAddVer13> { | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpConvergenceNotifVer13.java | 874 |
| org/projectfloodlight/openflow/protocol/ver13/OFBsnLacpStatsEntryVer13.java | 741 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpConvergenceNotifVer14.java | 874 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnLacpStatsEntryVer14.java | 741 |
if( actorKey != other.actorKey)
return false;
if( partnerSysPriority != other.partnerSysPriority)
return false;
if (partnerSysMac == null) {
if (other.partnerSysMac != null)
return false;
} else if (!partnerSysMac.equals(other.partnerSysMac))
return false;
if( partnerPortPriority != other.partnerPortPriority)
return false;
if( partnerPortNum != other.partnerPortNum)
return false;
if( partnerKey != other.partnerKey)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * (int) (xid ^ (xid >>> 32)); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 102 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 159 |
@Override
public int getType() {
return 0x3b;
}
@Override
public int getTableId() {
return tableId;
}
@Override
public OFBsnTlvReference.Builder setTableId(int tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnTlvReference.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFBsnTlvReferenceVer13.java | 159 |
| org/projectfloodlight/openflow/protocol/ver14/OFBsnTlvReferenceVer14.java | 102 |
@Override
public int getType() {
return 0x3b;
}
@Override
public int getTableId() {
return tableId;
}
@Override
public OFBsnTlvReference.Builder setTableId(int tableId) {
this.tableId = tableId;
this.tableIdSet = true;
return this;
}
@Override
public List<OFBsnTlv> getKey() {
return key;
}
@Override
public OFBsnTlvReference.Builder setKey(List<OFBsnTlv> key) {
this.key = key;
this.keySet = true;
return this;
}
@Override
public OFVersion getVersion() {
return OFVersion.OF_13; | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFeaturesReplyVer13.java | 87 |
| org/projectfloodlight/openflow/protocol/ver14/OFFeaturesReplyVer14.java | 87 |
}
@Override
public OFType getType() {
return OFType.FEATURES_REPLY;
}
@Override
public long getXid() {
return xid;
}
@Override
public DatapathId getDatapathId() {
return datapathId;
}
@Override
public long getNBuffers() {
return nBuffers;
}
@Override
public short getNTables() {
return nTables;
}
@Override
public Set<OFCapabilities> getCapabilities() {
return capabilities;
}
@Override
public long getReserved() {
return reserved;
}
@Override
public List<OFPortDesc> getPorts()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property ports not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFFlowAddVer13.java | 894 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteStrictVer13.java | 890 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowDeleteVer13.java | 889 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyStrictVer13.java | 890 |
| org/projectfloodlight/openflow/protocol/ver13/OFFlowModifyVer13.java | 888 |
public void write(ChannelBuffer bb, OFFlowAddVer13 message) {
int startIndex = bb.writerIndex();
// fixed value property version = 4
bb.writeByte((byte) 0x4);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 0
bb.writeByte((short) 0x0); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFMeterConfigVer13.java | 286 |
| org/projectfloodlight/openflow/protocol/ver14/OFMeterConfigVer14.java | 286 |
public void write(ChannelBuffer bb, OFMeterConfigVer13 message) {
int startIndex = bb.writerIndex();
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeShort(U16.t(message.flags));
bb.writeInt(U32.t(message.meterId));
ChannelUtils.writeList(bb, message.entries);
// update length field
int length = bb.writerIndex() - startIndex;
bb.setShort(lengthIndex, length);
}
}
@Override
public String toString() {
StringBuilder b = new StringBuilder("OFMeterConfigVer13("); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthDstVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthDstVer14.java | 106 |
BuilderWithParent(OFOxmBsnInnerEthDstVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32c06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthDst.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_DST;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnInnerEthSrcVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnInnerEthSrcVer14.java | 106 |
BuilderWithParent(OFOxmBsnInnerEthSrcVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32e06L;
}
@Override
public MacAddress getValue() {
return value;
}
@Override
public OFOxmBsnInnerEthSrc.Builder setValue(MacAddress value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<MacAddress> getMatchField() {
return MatchField.BSN_INNER_ETH_SRC;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<MacAddress> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnVxlanNetworkIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmBsnVxlanNetworkIdVer14.java | 106 |
BuilderWithParent(OFOxmBsnVxlanNetworkIdVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x32a04L;
}
@Override
public U32 getValue() {
return value;
}
@Override
public OFOxmBsnVxlanNetworkId.Builder setValue(U32 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U32> getMatchField() {
return MatchField.BSN_VXLAN_NETWORK_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U32> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmIpv6ExthdrVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmIpv6ExthdrVer14.java | 106 |
BuilderWithParent(OFOxmIpv6ExthdrVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004e02L;
}
@Override
public U16 getValue() {
return value;
}
@Override
public OFOxmIpv6Exthdr.Builder setValue(U16 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U16> getMatchField() {
return MatchField.IPV6_EXTHDR;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U16> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmMplsBosVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmMplsBosVer14.java | 106 |
BuilderWithParent(OFOxmMplsBosVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004801L;
}
@Override
public OFBooleanValue getValue() {
return value;
}
@Override
public OFOxmMplsBos.Builder setValue(OFBooleanValue value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<OFBooleanValue> getMatchField() {
return MatchField.MPLS_BOS;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<OFBooleanValue> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver13/OFOxmTunnelIdVer13.java | 106 |
| org/projectfloodlight/openflow/protocol/ver14/OFOxmTunnelIdVer14.java | 106 |
BuilderWithParent(OFOxmTunnelIdVer13 parentMessage) {
this.parentMessage = parentMessage;
}
@Override
public long getTypeLen() {
return 0x80004c08L;
}
@Override
public U64 getValue() {
return value;
}
@Override
public OFOxmTunnelId.Builder setValue(U64 value) {
this.value = value;
this.valueSet = true;
return this;
}
@Override
public MatchField<U64> getMatchField() {
return MatchField.TUNNEL_ID;
}
@Override
public boolean isMasked() {
return false;
}
@Override
public OFOxm<U64> getCanonical()throws UnsupportedOperationException {
throw new UnsupportedOperationException("Property canonical not supported in version 1.3"); | |
| File | Line |
|---|---|
| org/projectfloodlight/openflow/protocol/ver14/OFFlowAddVer14.java | 865 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteStrictVer14.java | 865 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowDeleteVer14.java | 865 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyStrictVer14.java | 865 |
| org/projectfloodlight/openflow/protocol/ver14/OFFlowModifyVer14.java | 865 |
public void write(ChannelBuffer bb, OFFlowAddVer14 message) {
int startIndex = bb.writerIndex();
// fixed value property version = 5
bb.writeByte((byte) 0x5);
// fixed value property type = 14
bb.writeByte((byte) 0xe);
// length is length of variable message, will be updated at the end
int lengthIndex = bb.writerIndex();
bb.writeShort(U16.t(0));
bb.writeInt(U32.t(message.xid));
bb.writeLong(message.cookie.getValue());
bb.writeLong(message.cookieMask.getValue());
message.tableId.writeByte(bb);
// fixed value property command = 0
bb.writeByte((short) 0x0); | |